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

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

Issue 2222723002: Avoid calling into the ContentBrowserClient interface from ResourceDispatcherHostImpl to determine … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt to fix 64 bit windows redness Created 4 years, 4 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 bool ContentBrowserClient::IsHandledURL(const GURL& url) { 66 bool ContentBrowserClient::IsHandledURL(const GURL& url) {
67 return false; 67 return false;
68 } 68 }
69 69
70 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, 70 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host,
71 const GURL& site_url) { 71 const GURL& site_url) {
72 return true; 72 return true;
73 } 73 }
74 74
75 bool ContentBrowserClient::IsIllegalOrigin(ResourceContext* resource_context,
76 int child_process_id,
77 const GURL& origin) {
78 return false;
79 }
80
81 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, 75 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance,
82 const GURL& url) { 76 const GURL& url) {
83 return true; 77 return true;
84 } 78 }
85 79
86 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, 80 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host,
87 const GURL& site_url) { 81 const GURL& site_url) {
88 return true; 82 return true;
89 } 83 }
90 84
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 #if defined(VIDEO_HOLE) 417 #if defined(VIDEO_HOLE)
424 ExternalVideoSurfaceContainer* 418 ExternalVideoSurfaceContainer*
425 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 419 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
426 WebContents* web_contents) { 420 WebContents* web_contents) {
427 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 421 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
428 return nullptr; 422 return nullptr;
429 } 423 }
430 #endif 424 #endif
431 425
432 } // namespace content 426 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698