| 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 #include "chrome/browser/search/instant_service.h" | 74 #include "chrome/browser/search/instant_service.h" |
| 75 #include "chrome/browser/search/instant_service_factory.h" | 75 #include "chrome/browser/search/instant_service_factory.h" |
| 76 #include "chrome/browser/search/search.h" | 76 #include "chrome/browser/search/search.h" |
| 77 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 77 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
| 78 #include "chrome/browser/speech/tts_controller.h" | 78 #include "chrome/browser/speech/tts_controller.h" |
| 79 #include "chrome/browser/speech/tts_message_filter.h" | 79 #include "chrome/browser/speech/tts_message_filter.h" |
| 80 #include "chrome/browser/ssl/ssl_blocking_page.h" | 80 #include "chrome/browser/ssl/ssl_blocking_page.h" |
| 81 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 81 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
| 82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" | 82 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
| 83 #include "chrome/browser/ssl/ssl_error_handler.h" | 83 #include "chrome/browser/ssl/ssl_error_handler.h" |
| 84 #include "chrome/browser/subresource_filter/subresource_filter_navigation_trottl
e_util.h" |
| 84 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 85 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
| 85 #include "chrome/browser/tab_contents/tab_util.h" | 86 #include "chrome/browser/tab_contents/tab_util.h" |
| 86 #include "chrome/browser/tracing/chrome_tracing_delegate.h" | 87 #include "chrome/browser/tracing/chrome_tracing_delegate.h" |
| 87 #include "chrome/browser/translate/chrome_translate_client.h" | 88 #include "chrome/browser/translate/chrome_translate_client.h" |
| 88 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" | 89 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" |
| 89 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 90 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
| 90 #include "chrome/browser/ui/browser_navigator.h" | 91 #include "chrome/browser/ui/browser_navigator.h" |
| 91 #include "chrome/browser/ui/browser_navigator_params.h" | 92 #include "chrome/browser/ui/browser_navigator_params.h" |
| 92 #include "chrome/browser/ui/chrome_select_file_policy.h" | 93 #include "chrome/browser/ui/chrome_select_file_policy.h" |
| 93 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 94 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
| (...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3286 } | 3287 } |
| 3287 } | 3288 } |
| 3288 } | 3289 } |
| 3289 #endif | 3290 #endif |
| 3290 | 3291 |
| 3291 #if BUILDFLAG(ENABLE_EXTENSIONS) | 3292 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| 3292 throttles.push_back( | 3293 throttles.push_back( |
| 3293 base::MakeUnique<extensions::ExtensionNavigationThrottle>(handle)); | 3294 base::MakeUnique<extensions::ExtensionNavigationThrottle>(handle)); |
| 3294 #endif | 3295 #endif |
| 3295 | 3296 |
| 3297 std::unique_ptr<content::NavigationThrottle> |
| 3298 subresource_filter_activation_throttle = |
| 3299 MaybeCreateSubresourceFilterNavigationThrottle( |
| 3300 handle, g_browser_process->safe_browsing_service()); |
| 3301 if (subresource_filter_activation_throttle) |
| 3302 throttles.push_back(std::move(subresource_filter_activation_throttle)); |
| 3303 |
| 3296 return throttles; | 3304 return throttles; |
| 3297 } | 3305 } |
| 3298 | 3306 |
| 3299 std::unique_ptr<content::NavigationUIData> | 3307 std::unique_ptr<content::NavigationUIData> |
| 3300 ChromeContentBrowserClient::GetNavigationUIData( | 3308 ChromeContentBrowserClient::GetNavigationUIData( |
| 3301 content::NavigationHandle* navigation_handle) { | 3309 content::NavigationHandle* navigation_handle) { |
| 3302 return base::MakeUnique<ChromeNavigationUIData>(navigation_handle); | 3310 return base::MakeUnique<ChromeNavigationUIData>(navigation_handle); |
| 3303 } | 3311 } |
| 3304 | 3312 |
| 3305 content::DevToolsManagerDelegate* | 3313 content::DevToolsManagerDelegate* |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3430 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3438 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3431 return variations::GetVariationParamValue( | 3439 return variations::GetVariationParamValue( |
| 3432 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3440 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3433 } | 3441 } |
| 3434 | 3442 |
| 3435 //static | 3443 //static |
| 3436 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3444 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3437 const storage::QuotaSettings* settings) { | 3445 const storage::QuotaSettings* settings) { |
| 3438 g_default_quota_settings = settings; | 3446 g_default_quota_settings = settings; |
| 3439 } | 3447 } |
| OLD | NEW |