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

Side by Side 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: most unittests pass 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "android_webview/browser/aw_browser_context.h" 5 #include "android_webview/browser/aw_browser_context.h"
6 6
7 #include "android_webview/browser/aw_form_database_service.h" 7 #include "android_webview/browser/aw_form_database_service.h"
8 #include "android_webview/browser/aw_pref_store.h" 8 #include "android_webview/browser/aw_pref_store.h"
9 #include "android_webview/browser/aw_quota_manager_bridge.h" 9 #include "android_webview/browser/aw_quota_manager_bridge.h"
10 #include "android_webview/browser/jni_dependency_factory.h" 10 #include "android_webview/browser/jni_dependency_factory.h"
11 #include "android_webview/browser/net/aw_url_request_context_getter.h" 11 #include "android_webview/browser/net/aw_url_request_context_getter.h"
12 #include "base/prefs/pref_registry_simple.h" 12 #include "base/prefs/pref_registry_simple.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/prefs/pref_service_builder.h" 14 #include "base/prefs/pref_service_builder.h"
15 #include "components/autofill/core/common/autofill_pref_names.h" 15 #include "components/autofill/core/common/autofill_pref_names.h"
16 #include "components/user_prefs/user_prefs.h" 16 #include "components/user_prefs/user_prefs.h"
17 #include "components/visitedlink/browser/visitedlink_master.h" 17 #include "components/visitedlink/browser/visitedlink_master.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "content/public/browser/cookie_store_factory.h"
19 #include "content/public/browser/resource_context.h" 20 #include "content/public/browser/resource_context.h"
20 #include "content/public/browser/storage_partition.h" 21 #include "content/public/browser/storage_partition.h"
21 #include "content/public/browser/web_contents.h" 22 #include "content/public/browser/web_contents.h"
22 #include "net/url_request/url_request_context.h" 23 #include "net/url_request/url_request_context.h"
23 24
24 namespace android_webview { 25 namespace android_webview {
25 26
26 namespace { 27 namespace {
27 28
28 // Shows notifications which correspond to PersistentPrefStore's reading errors. 29 // Shows notifications which correspond to PersistentPrefStore's reading errors.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 160
160 base::FilePath AwBrowserContext::GetPath() const { 161 base::FilePath AwBrowserContext::GetPath() const {
161 return context_storage_path_; 162 return context_storage_path_;
162 } 163 }
163 164
164 bool AwBrowserContext::IsOffTheRecord() const { 165 bool AwBrowserContext::IsOffTheRecord() const {
165 // Android WebView does not support off the record profile yet. 166 // Android WebView does not support off the record profile yet.
166 return false; 167 return false;
167 } 168 }
168 169
170 virtual CookieStoreConfig GetCookieStoreConfig() {
171 return content::CookieStoreConfig::InMemory();
172 }
173
169 net::URLRequestContextGetter* AwBrowserContext::GetRequestContext() { 174 net::URLRequestContextGetter* AwBrowserContext::GetRequestContext() {
170 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 175 return GetDefaultStoragePartition(this)->GetURLRequestContext();
171 } 176 }
172 177
173 net::URLRequestContextGetter* 178 net::URLRequestContextGetter*
174 AwBrowserContext::GetRequestContextForRenderProcess( 179 AwBrowserContext::GetRequestContextForRenderProcess(
175 int renderer_child_id) { 180 int renderer_child_id) {
176 return GetRequestContext(); 181 return GetRequestContext();
177 } 182 }
178 183
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 238
234 void AwBrowserContext::RebuildTable( 239 void AwBrowserContext::RebuildTable(
235 const scoped_refptr<URLEnumerator>& enumerator) { 240 const scoped_refptr<URLEnumerator>& enumerator) {
236 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 241 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
237 // can change in the lifetime of this WebView and may not yet be set here. 242 // can change in the lifetime of this WebView and may not yet be set here.
238 // Therefore this initialization path is not used. 243 // Therefore this initialization path is not used.
239 enumerator->OnComplete(true); 244 enumerator->OnComplete(true);
240 } 245 }
241 246
242 } // namespace android_webview 247 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698