Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4339)

Unified Diff: android_webview/browser/aw_browser_context.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change Cookie Override API to not expose the CookieStoreMap. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index 51f1c17bc1707de49c746b93d583a212d57e556c..5f710b170029e65d1e8a8f118780be9339bc998a 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -16,6 +16,7 @@
#include "components/user_prefs/user_prefs.h"
#include "components/visitedlink/browser/visitedlink_master.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/cookie_store_factory.h"
#include "content/public/browser/resource_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/browser/web_contents.h"
@@ -108,6 +109,9 @@ void AwBrowserContext::AddVisitedURLs(const std::vector<GURL>& urls) {
net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext(
content::ProtocolHandlerMap* protocol_handlers) {
+ // TODO(ajwong): The whole interaction between
+ // BrowserThreadDelegate::Init(), StoragePartition, and OverrideCookieStoreMap
+ // is confusing.
CHECK(url_request_context_getter_.get());
url_request_context_getter_->SetProtocolHandlers(protocol_handlers);
return url_request_context_getter_.get();
@@ -172,6 +176,12 @@ bool AwBrowserContext::IsOffTheRecord() const {
return false;
}
+content::CookieStoreConfig AwBrowserContext::GetCookieStoreConfig() {
+ return content::CookieStoreConfig::Persistent(
+ GetPath().Append(kCookieFilename),
+ content::CookieStoreConfig::RESTORED_SESSION_COOKIES);
+}
+
net::URLRequestContextGetter* AwBrowserContext::GetRequestContext() {
return GetDefaultStoragePartition(this)->GetURLRequestContext();
}
@@ -237,6 +247,13 @@ quota::SpecialStoragePolicy* AwBrowserContext::GetSpecialStoragePolicy() {
return NULL;
}
+void AwBrowserContext::OverrideCookieStoreMap(
+ bool in_memory,
+ const base::FilePath& partition_path,
+ bool is_default,
+ CookieStoreMap* cookie_store_map) {
+}
+
void AwBrowserContext::RebuildTable(
const scoped_refptr<URLEnumerator>& enumerator) {
// Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
« no previous file with comments | « android_webview/browser/aw_browser_context.h ('k') | android_webview/browser/net/aw_url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698