| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/chrome_content_browser_client_parts.h" | 10 #include "chrome/browser/chrome_content_browser_client_parts.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class ChromeContentBrowserClientExtensionsPart | 21 class ChromeContentBrowserClientExtensionsPart |
| 22 : public ChromeContentBrowserClientParts { | 22 : public ChromeContentBrowserClientParts { |
| 23 public: | 23 public: |
| 24 ChromeContentBrowserClientExtensionsPart(); | 24 ChromeContentBrowserClientExtensionsPart(); |
| 25 ~ChromeContentBrowserClientExtensionsPart() override; | 25 ~ChromeContentBrowserClientExtensionsPart() override; |
| 26 | 26 |
| 27 // Corresponds to the ChromeContentBrowserClient function of the same name. | 27 // Corresponds to the ChromeContentBrowserClient function of the same name. |
| 28 static GURL GetEffectiveURL(Profile* profile, const GURL& url); | 28 static GURL GetEffectiveURL(Profile* profile, const GURL& url); |
| 29 static bool ShouldUseProcessPerSite(Profile* profile, | 29 static bool ShouldUseProcessPerSite(Profile* profile, |
| 30 const GURL& effective_url); | 30 const GURL& effective_url); |
| 31 static bool DoesSiteRequireDedicatedProcess( |
| 32 content::BrowserContext* browser_context, |
| 33 const GURL& effective_site_url); |
| 31 static bool ShouldLockToOrigin(content::BrowserContext* browser_context, | 34 static bool ShouldLockToOrigin(content::BrowserContext* browser_context, |
| 32 const GURL& effective_site_url); | 35 const GURL& effective_site_url); |
| 33 static bool CanCommitURL(content::RenderProcessHost* process_host, | 36 static bool CanCommitURL(content::RenderProcessHost* process_host, |
| 34 const GURL& url); | 37 const GURL& url); |
| 35 static bool IsIllegalOrigin(content::ResourceContext* resource_context, | 38 static bool IsIllegalOrigin(content::ResourceContext* resource_context, |
| 36 int child_process_id, | 39 int child_process_id, |
| 37 const GURL& origin); | 40 const GURL& origin); |
| 38 static bool IsSuitableHost(Profile* profile, | 41 static bool IsSuitableHost(Profile* profile, |
| 39 content::RenderProcessHost* process_host, | 42 content::RenderProcessHost* process_host, |
| 40 const GURL& site_url); | 43 const GURL& site_url); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 90 |
| 88 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_; | 91 scoped_ptr<BrowserPermissionsPolicyDelegate> permissions_policy_delegate_; |
| 89 | 92 |
| 90 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); | 93 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); |
| 91 }; | 94 }; |
| 92 | 95 |
| 93 } // namespace extensions | 96 } // namespace extensions |
| 94 | 97 |
| 95 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ | 98 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ |
| 96 | 99 |
| OLD | NEW |