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

Side by Side Diff: chrome/browser/extensions/chrome_content_browser_client_extensions_part.h

Issue 2946113002: Use FrameIsAd to decide whether to isolate a frame in TopDocumentIsolation mode. (Closed)
Patch Set: Rebasing... 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_ 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_ H_
7 7
8 #include <memory>
9 #include <string>
10 #include <vector>
Łukasz Anforowicz 2017/06/30 15:28:37 IWYU fixes (and other "out of blue" changes, like
11
8 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
9 #include "base/macros.h" 13 #include "base/macros.h"
10 #include "chrome/browser/chrome_content_browser_client_parts.h" 14 #include "chrome/browser/chrome_content_browser_client_parts.h"
11 #include "ui/base/page_transition_types.h" 15 #include "ui/base/page_transition_types.h"
12 16
13 namespace content { 17 namespace content {
14 struct Referrer; 18 struct Referrer;
15 class ResourceContext; 19 class ResourceContext;
16 class VpnServiceProxy; 20 class VpnServiceProxy;
17 } 21 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 bool* result); 68 bool* result);
65 69
66 // Helper function to call InfoMap::SetSigninProcess(). 70 // Helper function to call InfoMap::SetSigninProcess().
67 static void SetSigninProcess(content::SiteInstance* site_instance); 71 static void SetSigninProcess(content::SiteInstance* site_instance);
68 72
69 // Creates a new VpnServiceProxy. The caller owns the returned value. It's 73 // Creates a new VpnServiceProxy. The caller owns the returned value. It's
70 // valid to return nullptr. 74 // valid to return nullptr.
71 static std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy( 75 static std::unique_ptr<content::VpnServiceProxy> GetVpnServiceProxy(
72 content::BrowserContext* browser_context); 76 content::BrowserContext* browser_context);
73 77
74 static bool ShouldFrameShareParentSiteInstanceDespiteTopDocumentIsolation( 78 static bool IsMainFrameSiteInstanceExcludedFromTopDocumentIsolation(
75 const GURL& url, 79 content::SiteInstance* main_frame_site_instance);
76 content::SiteInstance* parent_site_instance);
77 80
78 private: 81 private:
79 FRIEND_TEST_ALL_PREFIXES(ChromeContentBrowserClientExtensionsPartTest, 82 FRIEND_TEST_ALL_PREFIXES(ChromeContentBrowserClientExtensionsPartTest,
80 ShouldAllowOpenURLMetricsForEmptySiteURL); 83 ShouldAllowOpenURLMetricsForEmptySiteURL);
81 FRIEND_TEST_ALL_PREFIXES(ChromeContentBrowserClientExtensionsPartTest, 84 FRIEND_TEST_ALL_PREFIXES(ChromeContentBrowserClientExtensionsPartTest,
82 ShouldAllowOpenURLMetricsForKnownSchemes); 85 ShouldAllowOpenURLMetricsForKnownSchemes);
83 86
84 // Specifies reasons why web-accessible resource checks in ShouldAllowOpenURL 87 // Specifies reasons why web-accessible resource checks in ShouldAllowOpenURL
85 // might fail. 88 // might fail.
86 // 89 //
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Profile* profile) override; 126 Profile* profile) override;
124 void ResourceDispatcherHostCreated() override; 127 void ResourceDispatcherHostCreated() override;
125 128
126 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 129 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
127 }; 130 };
128 131
129 } // namespace extensions 132 } // namespace extensions
130 133
131 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 134 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
132 135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698