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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 if (!permission_manager_.get()) | 445 if (!permission_manager_.get()) |
446 permission_manager_.reset(new AwPermissionManager()); | 446 permission_manager_.reset(new AwPermissionManager()); |
447 return permission_manager_.get(); | 447 return permission_manager_.get(); |
448 } | 448 } |
449 | 449 |
450 content::BackgroundSyncController* | 450 content::BackgroundSyncController* |
451 AwBrowserContext::GetBackgroundSyncController() { | 451 AwBrowserContext::GetBackgroundSyncController() { |
452 return nullptr; | 452 return nullptr; |
453 } | 453 } |
454 | 454 |
| 455 content::ChooserPermissionManager* |
| 456 AwBrowserContext::GetChooserPermissionManager() { |
| 457 return nullptr; |
| 458 } |
| 459 |
455 policy::URLBlacklistManager* AwBrowserContext::GetURLBlacklistManager() { | 460 policy::URLBlacklistManager* AwBrowserContext::GetURLBlacklistManager() { |
456 // Should not be called until the end of PreMainMessageLoopRun, where | 461 // Should not be called until the end of PreMainMessageLoopRun, where |
457 // blacklist_manager_ is initialized. | 462 // blacklist_manager_ is initialized. |
458 DCHECK(blacklist_manager_); | 463 DCHECK(blacklist_manager_); |
459 return blacklist_manager_.get(); | 464 return blacklist_manager_.get(); |
460 } | 465 } |
461 | 466 |
462 void AwBrowserContext::RebuildTable( | 467 void AwBrowserContext::RebuildTable( |
463 const scoped_refptr<URLEnumerator>& enumerator) { | 468 const scoped_refptr<URLEnumerator>& enumerator) { |
464 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client | 469 // Android WebView rebuilds from WebChromeClient.getVisitedHistory. The client |
(...skipping 13 matching lines...) Expand all Loading... |
478 return; | 483 return; |
479 // We don't care about commit_delay for now. It is just a dummy value. | 484 // We don't care about commit_delay for now. It is just a dummy value. |
480 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); | 485 base::TimeDelta commit_delay = base::TimeDelta::FromMinutes(60); |
481 data_reduction_proxy_service->EnableCompressionStatisticsLogging( | 486 data_reduction_proxy_service->EnableCompressionStatisticsLogging( |
482 user_pref_service_.get(), | 487 user_pref_service_.get(), |
483 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), | 488 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
484 commit_delay); | 489 commit_delay); |
485 } | 490 } |
486 | 491 |
487 } // namespace android_webview | 492 } // namespace android_webview |
OLD | NEW |