OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" |
12 #include "content/browser/content_browser_client.h" | 13 #include "content/browser/content_browser_client.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
| 17 class ShellBrowserMainParts; |
| 18 |
16 class ShellContentBrowserClient : public ContentBrowserClient { | 19 class ShellContentBrowserClient : public ContentBrowserClient { |
17 public: | 20 public: |
| 21 ShellContentBrowserClient(); |
18 virtual ~ShellContentBrowserClient(); | 22 virtual ~ShellContentBrowserClient(); |
19 | 23 |
| 24 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { |
| 25 shell_browser_main_parts_ = parts; |
| 26 } |
| 27 |
20 virtual BrowserMainParts* CreateBrowserMainParts( | 28 virtual BrowserMainParts* CreateBrowserMainParts( |
21 const MainFunctionParams& parameters) OVERRIDE; | 29 const MainFunctionParams& parameters) OVERRIDE; |
22 virtual TabContentsView* CreateTabContentsView( | 30 virtual TabContentsView* CreateTabContentsView( |
23 TabContents* tab_contents) OVERRIDE; | 31 TabContents* tab_contents) OVERRIDE; |
24 virtual void RenderViewHostCreated( | 32 virtual void RenderViewHostCreated( |
25 RenderViewHost* render_view_host) OVERRIDE; | 33 RenderViewHost* render_view_host) OVERRIDE; |
26 virtual void BrowserRenderProcessHostCreated( | 34 virtual void BrowserRenderProcessHostCreated( |
27 BrowserRenderProcessHost* host) OVERRIDE; | 35 BrowserRenderProcessHost* host) OVERRIDE; |
28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 36 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
29 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | 37 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 137 |
130 #if defined(OS_WIN) | 138 #if defined(OS_WIN) |
131 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 139 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
132 #endif | 140 #endif |
133 | 141 |
134 #if defined(USE_NSS) | 142 #if defined(USE_NSS) |
135 virtual | 143 virtual |
136 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 144 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
137 const GURL& url) OVERRIDE; | 145 const GURL& url) OVERRIDE; |
138 #endif | 146 #endif |
| 147 |
| 148 private: |
| 149 ShellBrowserMainParts* shell_browser_main_parts_; |
139 }; | 150 }; |
140 | 151 |
141 } // namespace content | 152 } // namespace content |
142 | 153 |
143 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 154 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |