| 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 #include "components/nacl/common/nacl_switches.h" | 261 #include "components/nacl/common/nacl_switches.h" |
| 262 #endif | 262 #endif |
| 263 | 263 |
| 264 #if defined(ENABLE_EXTENSIONS) | 264 #if defined(ENABLE_EXTENSIONS) |
| 265 #include "chrome/browser/accessibility/animation_policy_prefs.h" | 265 #include "chrome/browser/accessibility/animation_policy_prefs.h" |
| 266 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" | 266 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" |
| 267 #include "chrome/browser/media/cast_transport_host_filter.h" | 267 #include "chrome/browser/media/cast_transport_host_filter.h" |
| 268 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" | 268 #include "chrome/browser/speech/extension_api/tts_engine_extension_api.h" |
| 269 #include "components/guest_view/browser/guest_view_base.h" | 269 #include "components/guest_view/browser/guest_view_base.h" |
| 270 #include "components/guest_view/browser/guest_view_manager.h" | 270 #include "components/guest_view/browser/guest_view_manager.h" |
| 271 #include "extensions/browser/extension_navigation_throttle.h" |
| 271 #include "extensions/browser/extension_registry.h" | 272 #include "extensions/browser/extension_registry.h" |
| 272 #include "extensions/browser/extension_util.h" | 273 #include "extensions/browser/extension_util.h" |
| 273 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 274 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| 274 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 275 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
| 275 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" | 276 #include "extensions/browser/guest_view/web_view/web_view_renderer_state.h" |
| 276 #include "extensions/common/constants.h" | 277 #include "extensions/common/constants.h" |
| 277 #include "extensions/common/extension.h" | 278 #include "extensions/common/extension.h" |
| 278 #include "extensions/common/extension_set.h" | 279 #include "extensions/common/extension_set.h" |
| 279 #include "extensions/common/manifest_handlers/background_info.h" | 280 #include "extensions/common/manifest_handlers/background_info.h" |
| 280 #include "extensions/common/manifest_handlers/shared_module_info.h" | 281 #include "extensions/common/manifest_handlers/shared_module_info.h" |
| (...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2916 // Add interstitial page while merge session process (cookie reconstruction | 2917 // Add interstitial page while merge session process (cookie reconstruction |
| 2917 // from OAuth2 refresh token in ChromeOS login) is still in progress while | 2918 // from OAuth2 refresh token in ChromeOS login) is still in progress while |
| 2918 // we are attempting to load a google property. | 2919 // we are attempting to load a google property. |
| 2919 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && | 2920 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && |
| 2920 handle->GetURL().SchemeIsHTTPOrHTTPS()) { | 2921 handle->GetURL().SchemeIsHTTPOrHTTPS()) { |
| 2921 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); | 2922 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); |
| 2922 } | 2923 } |
| 2923 } | 2924 } |
| 2924 #endif | 2925 #endif |
| 2925 | 2926 |
| 2927 #if defined(ENABLE_EXTENSIONS) |
| 2928 if (!handle->IsInMainFrame()) |
| 2929 throttles.push_back(new extensions::ExtensionNavigationThrottle(handle)); |
| 2930 #endif |
| 2931 |
| 2926 return throttles; | 2932 return throttles; |
| 2927 } | 2933 } |
| 2928 | 2934 |
| 2929 content::DevToolsManagerDelegate* | 2935 content::DevToolsManagerDelegate* |
| 2930 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { | 2936 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { |
| 2931 return new ChromeDevToolsManagerDelegate(); | 2937 return new ChromeDevToolsManagerDelegate(); |
| 2932 } | 2938 } |
| 2933 | 2939 |
| 2934 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() { | 2940 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() { |
| 2935 return new ChromeTracingDelegate(); | 2941 return new ChromeTracingDelegate(); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3004 if (channel <= kMaxDisableEncryptionChannel) { | 3010 if (channel <= kMaxDisableEncryptionChannel) { |
| 3005 static const char* const kWebRtcDevSwitchNames[] = { | 3011 static const char* const kWebRtcDevSwitchNames[] = { |
| 3006 switches::kDisableWebRtcEncryption, | 3012 switches::kDisableWebRtcEncryption, |
| 3007 }; | 3013 }; |
| 3008 to_command_line->CopySwitchesFrom(from_command_line, | 3014 to_command_line->CopySwitchesFrom(from_command_line, |
| 3009 kWebRtcDevSwitchNames, | 3015 kWebRtcDevSwitchNames, |
| 3010 arraysize(kWebRtcDevSwitchNames)); | 3016 arraysize(kWebRtcDevSwitchNames)); |
| 3011 } | 3017 } |
| 3012 } | 3018 } |
| 3013 #endif // defined(ENABLE_WEBRTC) | 3019 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |