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

Side by Side Diff: android_webview/browser/aw_browser_context.cc

Issue 557733002: [Android WebView] Use NetLog for providing full request headers to DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years, 3 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
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/aw_resource_context.h" 10 #include "android_webview/browser/aw_resource_context.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() { 176 AwFormDatabaseService* AwBrowserContext::GetFormDatabaseService() {
177 return form_database_service_.get(); 177 return form_database_service_.get();
178 } 178 }
179 179
180 DataReductionProxySettings* AwBrowserContext::GetDataReductionProxySettings() { 180 DataReductionProxySettings* AwBrowserContext::GetDataReductionProxySettings() {
181 return data_reduction_proxy_settings_.get(); 181 return data_reduction_proxy_settings_.get();
182 } 182 }
183 183
184 AwURLRequestContextGetter* AwBrowserContext::GetAwURLRequestContext() {
185 return url_request_context_getter_.get();
186 }
187
184 // Create user pref service for autofill functionality. 188 // Create user pref service for autofill functionality.
185 void AwBrowserContext::CreateUserPrefServiceIfNecessary() { 189 void AwBrowserContext::CreateUserPrefServiceIfNecessary() {
186 if (user_pref_service_) 190 if (user_pref_service_)
187 return; 191 return;
188 192
189 PrefRegistrySimple* pref_registry = new PrefRegistrySimple(); 193 PrefRegistrySimple* pref_registry = new PrefRegistrySimple();
190 // We only use the autocomplete feature of the Autofill, which is 194 // We only use the autocomplete feature of the Autofill, which is
191 // controlled via the manager_delegate. We don't use the rest 195 // controlled via the manager_delegate. We don't use the rest
192 // of autofill, which is why it is hardcoded as disabled here. 196 // of autofill, which is why it is hardcoded as disabled here.
193 pref_registry->RegisterBooleanPref( 197 pref_registry->RegisterBooleanPref(
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 291
288 void AwBrowserContext::RebuildTable( 292 void AwBrowserContext::RebuildTable(
289 const scoped_refptr<URLEnumerator>& enumerator) { 293 const scoped_refptr<URLEnumerator>& enumerator) {
290 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client 294 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client
291 // can change in the lifetime of this WebView and may not yet be set here. 295 // can change in the lifetime of this WebView and may not yet be set here.
292 // Therefore this initialization path is not used. 296 // Therefore this initialization path is not used.
293 enumerator->OnComplete(true); 297 enumerator->OnComplete(true);
294 } 298 }
295 299
296 } // namespace android_webview 300 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_context.h ('k') | android_webview/browser/aw_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698