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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 1905033002: PlzNavigate: Move navigation-level mixed content checks to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@console-security-message
Patch Set: Overall code cleanup to request reviewers to PTAL. Created 4 years, 5 months 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 "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/public/browser/client_certificate_delegate.h" 10 #include "content/public/browser/client_certificate_delegate.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 media::ScopedAudioManagerPtr ContentBrowserClient::CreateAudioManager( 108 media::ScopedAudioManagerPtr ContentBrowserClient::CreateAudioManager(
109 media::AudioLogFactory* audio_log_factory) { 109 media::AudioLogFactory* audio_log_factory) {
110 return nullptr; 110 return nullptr;
111 } 111 }
112 112
113 std::unique_ptr<media::CdmFactory> ContentBrowserClient::CreateCdmFactory() { 113 std::unique_ptr<media::CdmFactory> ContentBrowserClient::CreateCdmFactory() {
114 return nullptr; 114 return nullptr;
115 } 115 }
116 116
117 bool ContentBrowserClient::ShouldAllowDisplayingInsecureContent(
118 bool allowed_per_settings,
119 const GURL& resource_url,
120 WebContents* web_contents) {
121 return false;
122 }
123
124 bool ContentBrowserClient::ShouldAllowRunningInsecureContent(
125 bool allowed_per_settings,
126 const url::Origin& origin,
127 const GURL& resource_url,
128 WebContents* web_contents) {
129 return false;
130 }
131
117 bool ContentBrowserClient::ShouldSwapProcessesForRedirect( 132 bool ContentBrowserClient::ShouldSwapProcessesForRedirect(
118 ResourceContext* resource_context, const GURL& current_url, 133 ResourceContext* resource_context, const GURL& current_url,
119 const GURL& new_url) { 134 const GURL& new_url) {
120 return false; 135 return false;
121 } 136 }
122 137
123 bool ContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { 138 bool ContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) {
124 return true; 139 return true;
125 } 140 }
126 141
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 #if defined(VIDEO_HOLE) 447 #if defined(VIDEO_HOLE)
433 ExternalVideoSurfaceContainer* 448 ExternalVideoSurfaceContainer*
434 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 449 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
435 WebContents* web_contents) { 450 WebContents* web_contents) {
436 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 451 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
437 return nullptr; 452 return nullptr;
438 } 453 }
439 #endif 454 #endif
440 455
441 } // namespace content 456 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698