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

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

Issue 2851763003: Hosted apps VS --site-per-process.
Patch Set: Created 3 years, 7 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 "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"
11 #include "ui/base/page_transition_types.h" 11 #include "ui/base/page_transition_types.h"
12 12
13 namespace content { 13 namespace content {
14 struct Referrer; 14 struct Referrer;
15 class ResourceContext; 15 class ResourceContext;
16 class VpnServiceProxy; 16 class VpnServiceProxy;
17 } 17 }
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 // Implements the extensions portion of ChromeContentBrowserClient. 21 // Implements the extensions portion of ChromeContentBrowserClient.
22 class ChromeContentBrowserClientExtensionsPart 22 class ChromeContentBrowserClientExtensionsPart
23 : public ChromeContentBrowserClientParts { 23 : public ChromeContentBrowserClientParts {
24 public: 24 public:
25 ChromeContentBrowserClientExtensionsPart(); 25 ChromeContentBrowserClientExtensionsPart();
26 ~ChromeContentBrowserClientExtensionsPart() override; 26 ~ChromeContentBrowserClientExtensionsPart() override;
27 27
28 // Corresponds to the ChromeContentBrowserClient function of the same name. 28 // Corresponds to the ChromeContentBrowserClient function of the same name.
29 static GURL GetEffectiveURL(Profile* profile, const GURL& url);
30 static bool ShouldUseProcessPerSite(Profile* profile, 29 static bool ShouldUseProcessPerSite(Profile* profile,
31 const GURL& effective_url); 30 const GURL& effective_url);
32 static bool DoesSiteRequireDedicatedProcess( 31 static bool DoesSiteRequireDedicatedProcess(
33 content::BrowserContext* browser_context, 32 content::BrowserContext* browser_context,
34 const GURL& effective_site_url); 33 const GURL& effective_site_url);
35 static bool ShouldLockToOrigin(content::BrowserContext* browser_context, 34 static bool ShouldLockToOrigin(content::BrowserContext* browser_context,
36 const GURL& effective_site_url); 35 const GURL& effective_site_url);
37 static bool CanCommitURL(content::RenderProcessHost* process_host, 36 static bool CanCommitURL(content::RenderProcessHost* process_host,
38 const GURL& url); 37 const GURL& url);
39 static bool IsSuitableHost(Profile* profile, 38 static bool IsSuitableHost(Profile* profile,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 Profile* profile) override; 122 Profile* profile) override;
124 void ResourceDispatcherHostCreated() override; 123 void ResourceDispatcherHostCreated() override;
125 124
126 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); 125 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart);
127 }; 126 };
128 127
129 } // namespace extensions 128 } // namespace extensions
130 129
131 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_ 130 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA RT_H_
132 131
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698