| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "chrome/browser/prerender/prerender_manager.h" | 65 #include "chrome/browser/prerender/prerender_manager.h" |
| 66 #include "chrome/browser/prerender/prerender_manager_factory.h" | 66 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 67 #include "chrome/browser/prerender/prerender_message_filter.h" | 67 #include "chrome/browser/prerender/prerender_message_filter.h" |
| 68 #include "chrome/browser/printing/printing_message_filter.h" | 68 #include "chrome/browser/printing/printing_message_filter.h" |
| 69 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" | 69 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
| 70 #include "chrome/browser/profiles/profile.h" | 70 #include "chrome/browser/profiles/profile.h" |
| 71 #include "chrome/browser/profiles/profile_io_data.h" | 71 #include "chrome/browser/profiles/profile_io_data.h" |
| 72 #include "chrome/browser/renderer_host/chrome_navigation_ui_data.h" | 72 #include "chrome/browser/renderer_host/chrome_navigation_ui_data.h" |
| 73 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 73 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
| 74 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" | 74 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory
.h" |
| 75 #include "chrome/browser/resource_coordinator/tab_navigation_throttle.h" |
| 75 #include "chrome/browser/safe_browsing/certificate_reporting_service.h" | 76 #include "chrome/browser/safe_browsing/certificate_reporting_service.h" |
| 76 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" | 77 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" |
| 77 #include "chrome/browser/safe_browsing/mojo_safe_browsing_impl.h" | 78 #include "chrome/browser/safe_browsing/mojo_safe_browsing_impl.h" |
| 78 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 79 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
| 79 #include "chrome/browser/search/instant_service.h" | 80 #include "chrome/browser/search/instant_service.h" |
| 80 #include "chrome/browser/search/instant_service_factory.h" | 81 #include "chrome/browser/search/instant_service_factory.h" |
| 81 #include "chrome/browser/search/search.h" | 82 #include "chrome/browser/search/search.h" |
| 82 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 83 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
| 83 #include "chrome/browser/speech/tts_controller.h" | 84 #include "chrome/browser/speech/tts_controller.h" |
| 84 #include "chrome/browser/speech/tts_message_filter.h" | 85 #include "chrome/browser/speech/tts_message_filter.h" |
| (...skipping 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3376 if (delay_navigation_throttle) | 3377 if (delay_navigation_throttle) |
| 3377 throttles.push_back(std::move(delay_navigation_throttle)); | 3378 throttles.push_back(std::move(delay_navigation_throttle)); |
| 3378 | 3379 |
| 3379 content::WebContents* web_contents = handle->GetWebContents(); | 3380 content::WebContents* web_contents = handle->GetWebContents(); |
| 3380 if (auto* subresource_filter_client = | 3381 if (auto* subresource_filter_client = |
| 3381 ChromeSubresourceFilterClient::FromWebContents(web_contents)) { | 3382 ChromeSubresourceFilterClient::FromWebContents(web_contents)) { |
| 3382 subresource_filter_client->MaybeAppendNavigationThrottles(handle, | 3383 subresource_filter_client->MaybeAppendNavigationThrottles(handle, |
| 3383 &throttles); | 3384 &throttles); |
| 3384 } | 3385 } |
| 3385 | 3386 |
| 3387 std::unique_ptr<content::NavigationThrottle> tab_navigation_throttle = |
| 3388 resource_coordinator::TabNavigationThrottle::MaybeCreateThrottleFor( |
| 3389 handle); |
| 3390 if (tab_navigation_throttle) |
| 3391 throttles.push_back(std::move(tab_navigation_throttle)); |
| 3392 |
| 3386 return throttles; | 3393 return throttles; |
| 3387 } | 3394 } |
| 3388 | 3395 |
| 3389 std::unique_ptr<content::NavigationUIData> | 3396 std::unique_ptr<content::NavigationUIData> |
| 3390 ChromeContentBrowserClient::GetNavigationUIData( | 3397 ChromeContentBrowserClient::GetNavigationUIData( |
| 3391 content::NavigationHandle* navigation_handle) { | 3398 content::NavigationHandle* navigation_handle) { |
| 3392 return base::MakeUnique<ChromeNavigationUIData>(navigation_handle); | 3399 return base::MakeUnique<ChromeNavigationUIData>(navigation_handle); |
| 3393 } | 3400 } |
| 3394 | 3401 |
| 3395 content::DevToolsManagerDelegate* | 3402 content::DevToolsManagerDelegate* |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3504 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3511 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3505 return variations::GetVariationParamValue( | 3512 return variations::GetVariationParamValue( |
| 3506 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3513 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3507 } | 3514 } |
| 3508 | 3515 |
| 3509 // static | 3516 // static |
| 3510 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3517 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3511 const storage::QuotaSettings* settings) { | 3518 const storage::QuotaSettings* settings) { |
| 3512 g_default_quota_settings = settings; | 3519 g_default_quota_settings = settings; |
| 3513 } | 3520 } |
| OLD | NEW |