| OLD | NEW |
| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_policy_connector.h" | 9 #include "android_webview/browser/aw_browser_policy_connector.h" |
| 10 #include "android_webview/browser/aw_form_database_service.h" | 10 #include "android_webview/browser/aw_form_database_service.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 browser_policy_connector_->GetPolicyService(), | 262 browser_policy_connector_->GetPolicyService(), |
| 263 browser_policy_connector_->GetHandlerList(), | 263 browser_policy_connector_->GetHandlerList(), |
| 264 policy::POLICY_LEVEL_MANDATORY))); | 264 policy::POLICY_LEVEL_MANDATORY))); |
| 265 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError)); | 265 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError)); |
| 266 user_pref_service_ = pref_service_factory.Create(pref_registry); | 266 user_pref_service_ = pref_service_factory.Create(pref_registry); |
| 267 pref_change_registrar_.Init(user_pref_service_.get()); | 267 pref_change_registrar_.Init(user_pref_service_.get()); |
| 268 | 268 |
| 269 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); | 269 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); |
| 270 } | 270 } |
| 271 | 271 |
| 272 std::unique_ptr<content::ZoomLevelDelegate> | |
| 273 AwBrowserContext::CreateZoomLevelDelegate( | |
| 274 const base::FilePath& partition_path) { | |
| 275 return nullptr; | |
| 276 } | |
| 277 | |
| 278 base::FilePath AwBrowserContext::GetPath() const { | 272 base::FilePath AwBrowserContext::GetPath() const { |
| 279 return context_storage_path_; | 273 return context_storage_path_; |
| 280 } | 274 } |
| 281 | 275 |
| 282 bool AwBrowserContext::IsOffTheRecord() const { | 276 bool AwBrowserContext::IsOffTheRecord() const { |
| 283 // Android WebView does not support off the record profile yet. | 277 // Android WebView does not support off the record profile yet. |
| 284 return false; | 278 return false; |
| 285 } | 279 } |
| 286 | 280 |
| 287 content::ResourceContext* AwBrowserContext::GetResourceContext() { | 281 content::ResourceContext* AwBrowserContext::GetResourceContext() { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 392 |
| 399 void AwBrowserContext::RebuildTable( | 393 void AwBrowserContext::RebuildTable( |
| 400 const scoped_refptr<URLEnumerator>& enumerator) { | 394 const scoped_refptr<URLEnumerator>& enumerator) { |
| 401 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 395 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
| 402 // can change in the lifetime of this WebView and may not yet be set here. | 396 // can change in the lifetime of this WebView and may not yet be set here. |
| 403 // Therefore this initialization path is not used. | 397 // Therefore this initialization path is not used. |
| 404 enumerator->OnComplete(true); | 398 enumerator->OnComplete(true); |
| 405 } | 399 } |
| 406 | 400 |
| 407 } // namespace android_webview | 401 } // namespace android_webview |
| OLD | NEW |