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 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual void SiteInstanceGotProcess( | 53 virtual void SiteInstanceGotProcess( |
54 content::SiteInstance* site_instance) OVERRIDE; | 54 content::SiteInstance* site_instance) OVERRIDE; |
55 virtual void SiteInstanceDeleting( | 55 virtual void SiteInstanceDeleting( |
56 content::SiteInstance* site_instance) OVERRIDE; | 56 content::SiteInstance* site_instance) OVERRIDE; |
57 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 57 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
58 int child_process_id) OVERRIDE; | 58 int child_process_id) OVERRIDE; |
59 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( | 59 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( |
60 int plugin_process_id) OVERRIDE; | 60 int plugin_process_id) OVERRIDE; |
61 virtual void GetAdditionalAllowedSchemesForFileSystem( | 61 virtual void GetAdditionalAllowedSchemesForFileSystem( |
62 std::vector<std::string>* additional_schemes) OVERRIDE; | 62 std::vector<std::string>* additional_schemes) OVERRIDE; |
| 63 virtual content::DevToolsManagerDelegate* |
| 64 GetDevToolsManagerDelegate() OVERRIDE; |
63 | 65 |
64 private: | 66 private: |
65 // Appends command line switches for a renderer process. | 67 // Appends command line switches for a renderer process. |
66 void AppendRendererSwitches(base::CommandLine* command_line); | 68 void AppendRendererSwitches(base::CommandLine* command_line); |
67 | 69 |
68 // Returns the extension or app associated with |site_instance| or NULL. | 70 // Returns the extension or app associated with |site_instance| or NULL. |
69 const Extension* GetExtension(content::SiteInstance* site_instance); | 71 const Extension* GetExtension(content::SiteInstance* site_instance); |
70 | 72 |
71 // Owned by content::BrowserMainLoop. | 73 // Owned by content::BrowserMainLoop. |
72 ShellBrowserMainParts* browser_main_parts_; | 74 ShellBrowserMainParts* browser_main_parts_; |
73 | 75 |
74 // Owned by ShellBrowserMainParts. | 76 // Owned by ShellBrowserMainParts. |
75 ShellBrowserMainDelegate* browser_main_delegate_; | 77 ShellBrowserMainDelegate* browser_main_delegate_; |
76 | 78 |
77 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); | 79 DISALLOW_COPY_AND_ASSIGN(ShellContentBrowserClient); |
78 }; | 80 }; |
79 | 81 |
80 } // namespace extensions | 82 } // namespace extensions |
81 | 83 |
82 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 84 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |