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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_H_
6 #define CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_H_
8 #include "base/compiler_specific.h"
9 #include "base/macros.h"
10 #include "chrome/browser/chrome_content_browser_client_parts.h"
12 namespace extensions
{
14 class BrowserPermissionsPolicyDelegate
;
16 // Implements the extensions portion of ChromeContentBrowserClient.
17 class ChromeContentBrowserClientExtensionsPart
18 : public ChromeContentBrowserClientParts
{
20 ChromeContentBrowserClientExtensionsPart();
21 virtual ~ChromeContentBrowserClientExtensionsPart();
24 // ChromeContentBrowserClientParts:
25 virtual void RenderProcessWillLaunch(
26 content::RenderProcessHost
* host
) OVERRIDE
;
27 virtual void SiteInstanceGotProcess(
28 content::SiteInstance
* site_instance
) OVERRIDE
;
29 virtual void SiteInstanceDeleting(
30 content::SiteInstance
* site_instance
) OVERRIDE
;
31 virtual void WorkerProcessCreated(content::SiteInstance
* site_instance
,
32 int worker_process_id
) OVERRIDE
;
33 virtual void WorkerProcessTerminated(content::SiteInstance
* site_instance
,
34 int worker_process_id
) OVERRIDE
;
35 virtual void OverrideWebkitPrefs(content::RenderViewHost
* rvh
,
37 content::WebPreferences
* web_prefs
) OVERRIDE
;
38 virtual void BrowserURLHandlerCreated(
39 content::BrowserURLHandler
* handler
) OVERRIDE
;
40 virtual void GetAdditionalAllowedSchemesForFileSystem(
41 std::vector
<std::string
>* additional_allowed_schemes
) OVERRIDE
;
42 virtual void GetURLRequestAutoMountHandlers(
43 std::vector
<fileapi::URLRequestAutoMountHandler
>* handlers
) OVERRIDE
;
44 virtual void GetAdditionalFileSystemBackends(
45 content::BrowserContext
* browser_context
,
46 const base::FilePath
& storage_partition_path
,
47 ScopedVector
<fileapi::FileSystemBackend
>* additional_backends
) OVERRIDE
;
48 virtual void AppendExtraRendererCommandLineSwitches(
49 base::CommandLine
* command_line
,
50 content::RenderProcessHost
* process
,
51 Profile
* profile
) OVERRIDE
;
53 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClientExtensionsPart
);
56 } // namespace extensions
58 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_CONTENT_BROWSER_CLIENT_EXTENSIONS_PART_H_