| 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 "webkit/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 OverrideWebkitPrefs(content::RenderViewHost* rvh, | 45 virtual void OverrideWebkitPrefs(content::RenderViewHost* rvh, |
| 46 const GURL& url, | 46 const GURL& url, |
| 47 content::WebPreferences* web_prefs) {} | 47 content::WebPreferences* web_prefs) {} |
| 48 virtual void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) {} | 48 virtual void BrowserURLHandlerCreated(content::BrowserURLHandler* handler) {} |
| 49 virtual void GetAdditionalAllowedSchemesForFileSystem( | 49 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 50 std::vector<std::string>* additional_allowed_schemes) {} | 50 std::vector<std::string>* additional_allowed_schemes) {} |
| 51 virtual void GetURLRequestAutoMountHandlers( | 51 virtual void GetURLRequestAutoMountHandlers( |
| 52 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {} | 52 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} |
| 53 virtual void GetAdditionalFileSystemBackends( | 53 virtual void GetAdditionalFileSystemBackends( |
| 54 content::BrowserContext* browser_context, | 54 content::BrowserContext* browser_context, |
| 55 const base::FilePath& storage_partition_path, | 55 const base::FilePath& storage_partition_path, |
| 56 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} | 56 ScopedVector<storage::FileSystemBackend>* additional_backends) {} |
| 57 | 57 |
| 58 // Append extra switches to |command_line| for |process|. If |process| is not | 58 // Append extra switches to |command_line| for |process|. If |process| is not |
| 59 // NULL, then neither is |profile|. | 59 // NULL, then neither is |profile|. |
| 60 virtual void AppendExtraRendererCommandLineSwitches( | 60 virtual void AppendExtraRendererCommandLineSwitches( |
| 61 base::CommandLine* command_line, | 61 base::CommandLine* command_line, |
| 62 content::RenderProcessHost* process, | 62 content::RenderProcessHost* process, |
| 63 Profile* profile) {} | 63 Profile* profile) {} |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ | 66 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_PARTS_H_ |
| 67 | 67 |
| OLD | NEW |