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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 #include "chrome/browser/profiles/profile.h" | 60 #include "chrome/browser/profiles/profile.h" |
61 #include "chrome/browser/profiles/profile_io_data.h" | 61 #include "chrome/browser/profiles/profile_io_data.h" |
62 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 62 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
63 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h" | 63 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h" |
64 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 64 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
65 #include "chrome/browser/safe_browsing/ui_manager.h" | 65 #include "chrome/browser/safe_browsing/ui_manager.h" |
66 #include "chrome/browser/search/instant_service.h" | 66 #include "chrome/browser/search/instant_service.h" |
67 #include "chrome/browser/search/instant_service_factory.h" | 67 #include "chrome/browser/search/instant_service_factory.h" |
68 #include "chrome/browser/search/search.h" | 68 #include "chrome/browser/search/search.h" |
69 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" | 69 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" |
70 #include "chrome/browser/security/xfo_throttle.h" | |
70 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" | 71 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" |
71 #include "chrome/browser/speech/tts_controller.h" | 72 #include "chrome/browser/speech/tts_controller.h" |
72 #include "chrome/browser/speech/tts_message_filter.h" | 73 #include "chrome/browser/speech/tts_message_filter.h" |
73 #include "chrome/browser/ssl/ssl_add_certificate.h" | 74 #include "chrome/browser/ssl/ssl_add_certificate.h" |
74 #include "chrome/browser/ssl/ssl_blocking_page.h" | 75 #include "chrome/browser/ssl/ssl_blocking_page.h" |
75 #include "chrome/browser/ssl/ssl_cert_reporter.h" | 76 #include "chrome/browser/ssl/ssl_cert_reporter.h" |
76 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" | 77 #include "chrome/browser/ssl/ssl_client_certificate_selector.h" |
77 #include "chrome/browser/ssl/ssl_error_handler.h" | 78 #include "chrome/browser/ssl/ssl_error_handler.h" |
78 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" | 79 #include "chrome/browser/sync_file_system/local/sync_file_system_backend.h" |
79 #include "chrome/browser/tab_contents/tab_util.h" | 80 #include "chrome/browser/tab_contents/tab_util.h" |
(...skipping 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2729 // Add interstitial page while merge session process (cookie reconstruction | 2730 // Add interstitial page while merge session process (cookie reconstruction |
2730 // from OAuth2 refresh token in ChromeOS login) is still in progress while | 2731 // from OAuth2 refresh token in ChromeOS login) is still in progress while |
2731 // we are attempting to load a google property. | 2732 // we are attempting to load a google property. |
2732 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && | 2733 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && |
2733 handle->GetURL().SchemeIsHTTPOrHTTPS()) { | 2734 handle->GetURL().SchemeIsHTTPOrHTTPS()) { |
2734 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); | 2735 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); |
2735 } | 2736 } |
2736 } | 2737 } |
2737 #endif | 2738 #endif |
2738 | 2739 |
2740 scoped_ptr<content::NavigationThrottle> xfo_throttle = | |
Mike West
2015/12/17 13:09:15
I think this probably needs to happen in //content
| |
2741 XFOThrottle::MaybeCreateThrottleFor(handle); | |
2742 if (xfo_throttle) | |
2743 throttles.push_back(xfo_throttle.Pass()); | |
2744 | |
2739 return throttles.Pass(); | 2745 return throttles.Pass(); |
2740 } | 2746 } |
2741 | 2747 |
2742 content::DevToolsManagerDelegate* | 2748 content::DevToolsManagerDelegate* |
2743 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { | 2749 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { |
2744 return new ChromeDevToolsManagerDelegate(); | 2750 return new ChromeDevToolsManagerDelegate(); |
2745 } | 2751 } |
2746 | 2752 |
2747 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() { | 2753 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() { |
2748 #if !defined(OS_ANDROID) | 2754 #if !defined(OS_ANDROID) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2810 if (channel <= kMaxDisableEncryptionChannel) { | 2816 if (channel <= kMaxDisableEncryptionChannel) { |
2811 static const char* const kWebRtcDevSwitchNames[] = { | 2817 static const char* const kWebRtcDevSwitchNames[] = { |
2812 switches::kDisableWebRtcEncryption, | 2818 switches::kDisableWebRtcEncryption, |
2813 }; | 2819 }; |
2814 to_command_line->CopySwitchesFrom(from_command_line, | 2820 to_command_line->CopySwitchesFrom(from_command_line, |
2815 kWebRtcDevSwitchNames, | 2821 kWebRtcDevSwitchNames, |
2816 arraysize(kWebRtcDevSwitchNames)); | 2822 arraysize(kWebRtcDevSwitchNames)); |
2817 } | 2823 } |
2818 } | 2824 } |
2819 #endif // defined(ENABLE_WEBRTC) | 2825 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |