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