From deaba1c70b8ebdd1fffb40665a40e0593bd9cf3e Mon Sep 17 00:00:00 2001 From: Kristian Monsen Date: Fri, 22 Jul 2011 14:11:31 +0100 Subject: Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed to subsequent HTTP requests Cookies should be store between requests in memory with this. Tell me if you want to store the cookies on disk as well. Change-Id: I9afe5796a3d395afcf54d669c86cf7da432f8d9a --- media/libstagefright/chromium_http/support.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'media/libstagefright/chromium_http') diff --git a/media/libstagefright/chromium_http/support.cpp b/media/libstagefright/chromium_http/support.cpp index f4b3668..eb10ab7 100644 --- a/media/libstagefright/chromium_http/support.cpp +++ b/media/libstagefright/chromium_http/support.cpp @@ -25,6 +25,7 @@ #include "android/net/android_network_library_impl.h" #include "base/threading/thread.h" #include "net/base/cert_verifier.h" +#include "net/base/cookie_monster.h" #include "net/base/host_resolver.h" #include "net/base/ssl_config_service.h" #include "net/http/http_auth_handler_factory.h" @@ -140,6 +141,8 @@ SfRequestContext::SfRequestContext() { network_delegate(), net_log(), NULL)); // backend_factory + + set_cookie_store(new net::CookieMonster(NULL, NULL)); } const std::string &SfRequestContext::GetUserAgent(const GURL &url) const { -- cgit v1.1