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

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: compile gdi. 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 166
166 base::FilePath AwBrowserContext::GetPath() const { 167 base::FilePath AwBrowserContext::GetPath() const {
167 return context_storage_path_; 168 return context_storage_path_;
168 } 169 }
169 170
170 bool AwBrowserContext::IsOffTheRecord() const { 171 bool AwBrowserContext::IsOffTheRecord() const {
171 // Android WebView does not support off the record profile yet. 172 // Android WebView does not support off the record profile yet.
172 return false; 173 return false;
173 } 174 }
174 175
176 content::CookieStoreConfig AwBrowserContext::GetCookieStoreConfig() {
177 return content::CookieStoreConfig::InMemory();
178 }
179
175 net::URLRequestContextGetter* AwBrowserContext::GetRequestContext() { 180 net::URLRequestContextGetter* AwBrowserContext::GetRequestContext() {
176 return GetDefaultStoragePartition(this)->GetURLRequestContext(); 181 return GetDefaultStoragePartition(this)->GetURLRequestContext();
177 } 182 }
178 183
179 net::URLRequestContextGetter* 184 net::URLRequestContextGetter*
180 AwBrowserContext::GetRequestContextForRenderProcess( 185 AwBrowserContext::GetRequestContextForRenderProcess(
181 int renderer_child_id) { 186 int renderer_child_id) {
182 return GetRequestContext(); 187 return GetRequestContext();
183 } 188 }
184 189
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 244
240 void AwBrowserContext::RebuildTable( 245 void AwBrowserContext::RebuildTable(
241 const scoped_refptr<URLEnumerator>& enumerator) { 246 const scoped_refptr<URLEnumerator>& enumerator) {
242 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 247 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
243 // can change in the lifetime of this WebView and may not yet be set here. 248 // can change in the lifetime of this WebView and may not yet be set here.
244 // Therefore this initialization path is not used. 249 // Therefore this initialization path is not used.
245 enumerator->OnComplete(true); 250 enumerator->OnComplete(true);
246 } 251 }
247 252
248 } // namespace android_webview 253 } // namespace android_webview
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698