Chromium Code Reviews

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: fix silly compile error Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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"
(...skipping 90 matching lines...)
101 visitedlink_master_->Init(); 101 visitedlink_master_->Init();
102 } 102 }
103 103
104 void AwBrowserContext::AddVisitedURLs(const std::vector<GURL>& urls) { 104 void AwBrowserContext::AddVisitedURLs(const std::vector<GURL>& urls) {
105 DCHECK(visitedlink_master_); 105 DCHECK(visitedlink_master_);
106 visitedlink_master_->AddURLs(urls); 106 visitedlink_master_->AddURLs(urls);
107 } 107 }
108 108
109 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext( 109 net::URLRequestContextGetter* AwBrowserContext::CreateRequestContext(
110 content::ProtocolHandlerMap* protocol_handlers) { 110 content::ProtocolHandlerMap* protocol_handlers) {
111 // TODO(ajwong): The whole interaction between
112 // BrowserThreadDelegate::Init(), StoragePartition.
joth 2013/08/16 17:45:05 nit: "TODO: The whole interaction.." doesn't mean
awong 2013/08/17 00:32:52 Clarified the comment...though given the unittest
113 // Fix after we clean up the cookie stores in http://crbug.com/159193
111 CHECK(url_request_context_getter_.get()); 114 CHECK(url_request_context_getter_.get());
112 url_request_context_getter_->SetProtocolHandlers(protocol_handlers); 115 url_request_context_getter_->SetProtocolHandlers(protocol_handlers);
113 return url_request_context_getter_.get(); 116 return url_request_context_getter_.get();
114 } 117 }
115 118
116 net::URLRequestContextGetter* 119 net::URLRequestContextGetter*
117 AwBrowserContext::CreateRequestContextForStoragePartition( 120 AwBrowserContext::CreateRequestContextForStoragePartition(
118 const base::FilePath& partition_path, 121 const base::FilePath& partition_path,
119 bool in_memory, 122 bool in_memory,
120 content::ProtocolHandlerMap* protocol_handlers) { 123 content::ProtocolHandlerMap* protocol_handlers) {
(...skipping 118 matching lines...)
239 242
240 void AwBrowserContext::RebuildTable( 243 void AwBrowserContext::RebuildTable(
241 const scoped_refptr<URLEnumerator>& enumerator) { 244 const scoped_refptr<URLEnumerator>& enumerator) {
242 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 245 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
243 // can change in the lifetime of this WebView and may not yet be set here. 246 // can change in the lifetime of this WebView and may not yet be set here.
244 // Therefore this initialization path is not used. 247 // Therefore this initialization path is not used.
245 enumerator->OnComplete(true); 248 enumerator->OnComplete(true);
246 } 249 }
247 250
248 } // namespace android_webview 251 } // namespace android_webview
OLDNEW

Powered by Google App Engine