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

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

Issue 2946113002: Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Use FOR_EACH_TDI_MODE(V) macro. Created 3 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 <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, 84 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host,
85 const GURL& site_url) { 85 const GURL& site_url) {
86 return true; 86 return true;
87 } 87 }
88 88
89 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance, 89 bool ContentBrowserClient::ShouldAllowOpenURL(SiteInstance* site_instance,
90 const GURL& url) { 90 const GURL& url) {
91 return true; 91 return true;
92 } 92 }
93 93
94 bool ContentBrowserClient:: 94 bool ContentBrowserClient::ShouldIsolateFrameFromMainContent(
95 ShouldFrameShareParentSiteInstanceDespiteTopDocumentIsolation( 95 RenderFrameHost* frame,
96 const GURL& url, 96 const GURL& dest_url,
97 SiteInstance* parent_site_instance) { 97 SiteInstance* main_frame_site_instance) {
98 return false; 98 return false;
Charlie Reis 2017/06/30 23:28:46 Shouldn't this be true? Otherwise it seems like e
Łukasz Anforowicz 2017/07/01 00:10:53 Makes sense - I wasn't quite sure what should be r
99 } 99 }
100 100
101 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, 101 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host,
102 const GURL& site_url) { 102 const GURL& site_url) {
103 return true; 103 return true;
104 } 104 }
105 105
106 bool ContentBrowserClient::MayReuseHost(RenderProcessHost* process_host) { 106 bool ContentBrowserClient::MayReuseHost(RenderProcessHost* process_host) {
107 return true; 107 return true;
108 } 108 }
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 return nullptr; 460 return nullptr;
461 } 461 }
462 462
463 std::vector<std::unique_ptr<URLLoaderThrottle>> 463 std::vector<std::unique_ptr<URLLoaderThrottle>>
464 ContentBrowserClient::CreateURLLoaderThrottles( 464 ContentBrowserClient::CreateURLLoaderThrottles(
465 const base::Callback<WebContents*()>& wc_getter) { 465 const base::Callback<WebContents*()>& wc_getter) {
466 return std::vector<std::unique_ptr<URLLoaderThrottle>>(); 466 return std::vector<std::unique_ptr<URLLoaderThrottle>>();
467 } 467 }
468 468
469 } // namespace content 469 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698