OSDN Git Service

Fix for bug 5049763 HLS: Cookies set in main playlist request aren't being passed...
authorKristian Monsen <kristianm@google.com>
Fri, 22 Jul 2011 13:11:31 +0000 (14:11 +0100)
committerKristian Monsen <kristianm@google.com>
Fri, 22 Jul 2011 13:11:31 +0000 (14:11 +0100)
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

index f4b3668..eb10ab7 100644 (file)
@@ -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 {