| 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 EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 | 10 |
| 11 class GURL; | 11 class GURL; |
| 12 | 12 |
| 13 namespace base { |
| 14 class CommandLine; |
| 15 } |
| 16 |
| 13 namespace content { | 17 namespace content { |
| 14 class BrowserContext; | 18 class BrowserContext; |
| 15 } | 19 } |
| 16 | 20 |
| 17 namespace extensions { | 21 namespace extensions { |
| 18 class Extension; | 22 class Extension; |
| 19 class ShellBrowserMainDelegate; | 23 class ShellBrowserMainDelegate; |
| 20 class ShellBrowserMainParts; | 24 class ShellBrowserMainParts; |
| 21 | 25 |
| 22 // Content module browser process support for app_shell. | 26 // Content module browser process support for app_shell. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; | 49 content::URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
| 46 // TODO(jamescook): Quota management? | 50 // TODO(jamescook): Quota management? |
| 47 // TODO(jamescook): Speech recognition? | 51 // TODO(jamescook): Speech recognition? |
| 48 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 52 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
| 49 virtual void SiteInstanceGotProcess( | 53 virtual void SiteInstanceGotProcess( |
| 50 content::SiteInstance* site_instance) OVERRIDE; | 54 content::SiteInstance* site_instance) OVERRIDE; |
| 51 virtual void SiteInstanceDeleting( | 55 virtual void SiteInstanceDeleting( |
| 52 content::SiteInstance* site_instance) OVERRIDE; | 56 content::SiteInstance* site_instance) OVERRIDE; |
| 53 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 57 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
| 54 int child_process_id) OVERRIDE; | 58 int child_process_id) OVERRIDE; |
| 59 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
| 60 int plugin_process_id) OVERRIDE; |
| 55 virtual void GetAdditionalAllowedSchemesForFileSystem( | 61 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 56 std::vector<std::string>* additional_schemes) OVERRIDE; | 62 std::vector<std::string>* additional_schemes) OVERRIDE; |
| 57 | 63 |
| 58 private: | 64 private: |
| 65 // Appends command line switches for a renderer process. |
| 66 void AppendRendererSwitches(base::CommandLine* command_line); |
| 67 |
| 59 // Returns the extension or app associated with |site_instance| or NULL. | 68 // Returns the extension or app associated with |site_instance| or NULL. |
| 60 const Extension* GetExtension(content::SiteInstance* site_instance); | 69 const Extension* GetExtension(content::SiteInstance* site_instance); |
| 61 | 70 |
| 62 // Owned by content::BrowserMainLoop. | 71 // Owned by content::BrowserMainLoop. |
| 63 ShellBrowserMainParts* browser_main_parts_; | 72 ShellBrowserMainParts* browser_main_parts_; |
| 64 | 73 |
| 65 // Owned by ShellBrowserMainParts. | 74 // Owned by ShellBrowserMainParts. |
| 66 ShellBrowserMainDelegate* browser_main_delegate_; | 75 ShellBrowserMainDelegate* browser_main_delegate_; |
| 67 | 76 |
| 68 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); | 77 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); |
| 69 }; | 78 }; |
| 70 | 79 |
| 71 } // namespace extensions | 80 } // namespace extensions |
| 72 | 81 |
| 73 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 82 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |