| OLD | NEW |
| 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> |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |