Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(762)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1530393003: WIP: Move 'X-Frame-Options' checking to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 2634 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 // Add interstitial page while merge session process (cookie reconstruction 2715 // Add interstitial page while merge session process (cookie reconstruction
2715 // from OAuth2 refresh token in ChromeOS login) is still in progress while 2716 // from OAuth2 refresh token in ChromeOS login) is still in progress while
2716 // we are attempting to load a google property. 2717 // we are attempting to load a google property.
2717 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() && 2718 if (!merge_session_throttling_utils::AreAllSessionMergedAlready() &&
2718 handle->GetURL().SchemeIsHTTPOrHTTPS()) { 2719 handle->GetURL().SchemeIsHTTPOrHTTPS()) {
2719 throttles.push_back(MergeSessionNavigationThrottle::Create(handle)); 2720 throttles.push_back(MergeSessionNavigationThrottle::Create(handle));
2720 } 2721 }
2721 } 2722 }
2722 #endif 2723 #endif
2723 2724
2725 scoped_ptr<content::NavigationThrottle> xfo_throttle =
2726 XFOThrottle::MaybeCreateThrottleFor(handle);
2727 if (xfo_throttle)
2728 throttles.push_back(xfo_throttle.Pass());
2729
2724 return throttles.Pass(); 2730 return throttles.Pass();
2725 } 2731 }
2726 2732
2727 content::DevToolsManagerDelegate* 2733 content::DevToolsManagerDelegate*
2728 ChromeContentBrowserClient::GetDevToolsManagerDelegate() { 2734 ChromeContentBrowserClient::GetDevToolsManagerDelegate() {
2729 return new ChromeDevToolsManagerDelegate(); 2735 return new ChromeDevToolsManagerDelegate();
2730 } 2736 }
2731 2737
2732 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() { 2738 content::TracingDelegate* ChromeContentBrowserClient::GetTracingDelegate() {
2733 #if !defined(OS_ANDROID) 2739 #if !defined(OS_ANDROID)
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
2795 if (channel <= kMaxDisableEncryptionChannel) { 2801 if (channel <= kMaxDisableEncryptionChannel) {
2796 static const char* const kWebRtcDevSwitchNames[] = { 2802 static const char* const kWebRtcDevSwitchNames[] = {
2797 switches::kDisableWebRtcEncryption, 2803 switches::kDisableWebRtcEncryption,
2798 }; 2804 };
2799 to_command_line->CopySwitchesFrom(from_command_line, 2805 to_command_line->CopySwitchesFrom(from_command_line,
2800 kWebRtcDevSwitchNames, 2806 kWebRtcDevSwitchNames,
2801 arraysize(kWebRtcDevSwitchNames)); 2807 arraysize(kWebRtcDevSwitchNames));
2802 } 2808 }
2803 } 2809 }
2804 #endif // defined(ENABLE_WEBRTC) 2810 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/security/xfo_throttle.h » ('j') | chrome/browser/security/xfo_throttle.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698