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

Side by Side Diff: content/public/browser/web_contents_delegate.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: Moved methods from ContentBrowserClient to WebContentsDelegate; all caps constant names. Created 3 years, 11 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/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "content/public/browser/render_view_host.h" 11 #include "content/public/browser/render_view_host.h"
12 #include "content/public/browser/security_style_explanations.h" 12 #include "content/public/browser/security_style_explanations.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "content/public/common/bindings_policy.h" 14 #include "content/public/common/bindings_policy.h"
15 #include "content/public/common/url_constants.h" 15 #include "content/public/common/url_constants.h"
16 #include "net/cert/x509_certificate.h" 16 #include "net/cert/x509_certificate.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "url/origin.h"
18 19
19 namespace content { 20 namespace content {
20 21
21 WebContentsDelegate::WebContentsDelegate() { 22 WebContentsDelegate::WebContentsDelegate() {
22 } 23 }
23 24
24 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source, 25 WebContents* WebContentsDelegate::OpenURLFromTab(WebContents* source,
25 const OpenURLParams& params) { 26 const OpenURLParams& params) {
26 return nullptr; 27 return nullptr;
27 } 28 }
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 266
266 void WebContentsDelegate::ShowCertificateViewerInDevTools( 267 void WebContentsDelegate::ShowCertificateViewerInDevTools(
267 WebContents* web_contents, 268 WebContents* web_contents,
268 scoped_refptr<net::X509Certificate> certificate) { 269 scoped_refptr<net::X509Certificate> certificate) {
269 } 270 }
270 271
271 void WebContentsDelegate::RequestAppBannerFromDevTools( 272 void WebContentsDelegate::RequestAppBannerFromDevTools(
272 content::WebContents* web_contents) { 273 content::WebContents* web_contents) {
273 } 274 }
274 275
276 void WebContentsDelegate::PassiveInsecureContentFound(
277 const GURL& resource_url) {}
278
279 bool WebContentsDelegate::ShouldAllowRunningInsecureContent(
280 bool allowed_per_settings,
281 const url::Origin& origin,
282 const GURL& resource_url,
283 WebContents* web_contents) {
284 return allowed_per_settings;
285 }
286
275 } // namespace content 287 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698