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" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class ResourceContext; | 13 class ResourceContext; |
14 class VpnServiceProxy; | 14 class VpnServiceProxy; |
15 } | 15 } |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
| 19 class ChromeExtensionOriginInterceptor; |
| 20 |
19 // Implements the extensions portion of ChromeContentBrowserClient. | 21 // Implements the extensions portion of ChromeContentBrowserClient. |
20 class ChromeContentBrowserClientExtensionsPart | 22 class ChromeContentBrowserClientExtensionsPart |
21 : public ChromeContentBrowserClientParts { | 23 : public ChromeContentBrowserClientParts { |
22 public: | 24 public: |
23 ChromeContentBrowserClientExtensionsPart(); | 25 ChromeContentBrowserClientExtensionsPart(); |
24 ~ChromeContentBrowserClientExtensionsPart() override; | 26 ~ChromeContentBrowserClientExtensionsPart() override; |
25 | 27 |
26 // Corresponds to the ChromeContentBrowserClient function of the same name. | 28 // Corresponds to the ChromeContentBrowserClient function of the same name. |
27 static GURL GetEffectiveURL(Profile* profile, const GURL& url); | 29 static GURL GetEffectiveURL(Profile* profile, const GURL& url); |
28 static bool ShouldUseProcessPerSite(Profile* profile, | 30 static bool ShouldUseProcessPerSite(Profile* profile, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 void GetURLRequestAutoMountHandlers( | 86 void GetURLRequestAutoMountHandlers( |
85 std::vector<storage::URLRequestAutoMountHandler>* handlers) override; | 87 std::vector<storage::URLRequestAutoMountHandler>* handlers) override; |
86 void GetAdditionalFileSystemBackends( | 88 void GetAdditionalFileSystemBackends( |
87 content::BrowserContext* browser_context, | 89 content::BrowserContext* browser_context, |
88 const base::FilePath& storage_partition_path, | 90 const base::FilePath& storage_partition_path, |
89 ScopedVector<storage::FileSystemBackend>* additional_backends) override; | 91 ScopedVector<storage::FileSystemBackend>* additional_backends) override; |
90 void AppendExtraRendererCommandLineSwitches( | 92 void AppendExtraRendererCommandLineSwitches( |
91 base::CommandLine* command_line, | 93 base::CommandLine* command_line, |
92 content::RenderProcessHost* process, | 94 content::RenderProcessHost* process, |
93 Profile* profile) override; | 95 Profile* profile) override; |
| 96 void ResourceDispatcherHostCreated() override; |
| 97 |
| 98 // Registered as a HTTP header inspector on the ResourceDispatcherHost for |
| 99 // extension schemes. Validates whether an origin is allowed. |
| 100 std::unique_ptr<ChromeExtensionOriginInterceptor> |
| 101 extension_origin_interceptor_; |
94 | 102 |
95 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); | 103 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart); |
96 }; | 104 }; |
97 | 105 |
98 } // namespace extensions | 106 } // namespace extensions |
99 | 107 |
100 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ | 108 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PA
RT_H_ |
101 | 109 |
OLD | NEW |