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_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ |
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
12 #include "webkit/browser/fileapi/file_system_context.h" | 12 #include "storage/browser/fileapi/file_system_context.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class CommandLine; | 15 class CommandLine; |
16 class FilePath; | 16 class FilePath; |
17 } | 17 } |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class BrowserContext; | 20 class BrowserContext; |
21 class BrowserURLHandler; | 21 class BrowserURLHandler; |
22 class RenderProcessHost; | 22 class RenderProcessHost; |
23 class RenderViewHost; | 23 class RenderViewHost; |
24 class SiteInstance; | 24 class SiteInstance; |
25 struct WebPreferences; | 25 struct WebPreferences; |
26 } | 26 } |
27 | 27 |
28 namespace fileapi { | 28 namespace storage { |
29 class FileSystemBackend; | 29 class FileSystemBackend; |
30 } | 30 } |
31 | 31 |
32 class GURL; | 32 class GURL; |
33 class Profile; | 33 class Profile; |
34 | 34 |
35 // Implements a platform or feature specific part of ChromeContentBrowserClient. | 35 // Implements a platform or feature specific part of ChromeContentBrowserClient. |
36 // All the public methods corresponds to the methods of the same name in | 36 // All the public methods corresponds to the methods of the same name in |
37 // content::ContentBrowserClient. | 37 // content::ContentBrowserClient. |
38 class ChromeContentBrowserClientParts { | 38 class ChromeContentBrowserClientParts { |
39 public: | 39 public: |
40 virtual ~ChromeContentBrowserClientParts() {} | 40 virtual ~ChromeContentBrowserClientParts() {} |
41 | 41 |
42 virtual void RenderProcessWillLaunch(content::RenderProcessHost* host) {} | 42 virtual void RenderProcessWillLaunch(content::RenderProcessHost* host) {} |
43 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) {} | 43 virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance) {} |
44 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) {} | 44 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) {} |
45 virtual void WorkerProcessCreated(content::SiteInstance* site_instance, | 45 virtual void WorkerProcessCreated(content::SiteInstance* site_instance, |
46 int worker_process_id) {} | 46 int worker_process_id) {} |
47 virtual void WorkerProcessTerminated(content::SiteInstance* site_instance, | 47 virtual void WorkerProcessTerminated(content::SiteInstance* site_instance, |
48 int worker_process_id) {} | 48 int worker_process_id) {} |
49 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, | 49 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
50 const GURL& url, | 50 const GURL& url, |
51 content::WebPreferences* web_prefs) {} | 51 content::WebPreferences* web_prefs) {} |
52 virtual void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) {} | 52 virtual void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) {} |
53 virtual void GetAdditionalAllowedSchemesForFileSystem( | 53 virtual void GetAdditionalAllowedSchemesForFileSystem( |
54 std::vector<std::string>* additional_allowed_schemes) {} | 54 std::vector<std::string>* additional_allowed_schemes) {} |
55 virtual void GetURLRequestAutoMountHandlers( | 55 virtual void GetURLRequestAutoMountHandlers( |
56 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {} | 56 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} |
57 virtual void GetAdditionalFileSystemBackends( | 57 virtual void GetAdditionalFileSystemBackends( |
58 content::BrowserContext* browser_context, | 58 content::BrowserContext* browser_context, |
59 const base::FilePath& storage_partition_path, | 59 const base::FilePath& storage_partition_path, |
60 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} | 60 ScopedVector<storage::FileSystemBackend>* additional_backends) {} |
61 | 61 |
62 // Append extra switches to |command_line| for |process|. If |process| is not | 62 // Append extra switches to |command_line| for |process|. If |process| is not |
63 // NULL, then neither is |profile|. | 63 // NULL, then neither is |profile|. |
64 virtual void AppendExtraRendererCommandLineSwitches( | 64 virtual void AppendExtraRendererCommandLineSwitches( |
65 base::CommandLine* command_line, | 65 base::CommandLine* command_line, |
66 content::RenderProcessHost* process, | 66 content::RenderProcessHost* process, |
67 Profile* profile) {} | 67 Profile* profile) {} |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ | 70 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ |
71 | 71 |
OLD | NEW |