OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h" |
13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ShellBrowserMainParts; | 17 class ShellBrowserMainParts; |
18 | 18 |
19 class ShellContentBrowserClient : public ContentBrowserClient { | 19 class ShellContentBrowserClient : public ContentBrowserClient { |
20 public: | 20 public: |
21 ShellContentBrowserClient(); | 21 ShellContentBrowserClient(); |
22 virtual ~ShellContentBrowserClient(); | 22 virtual ~ShellContentBrowserClient(); |
23 | 23 |
24 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { | 24 void set_shell_browser_main_parts(ShellBrowserMainParts* parts) { |
25 shell_browser_main_parts_ = parts; | 25 shell_browser_main_parts_ = parts; |
26 } | 26 } |
27 | 27 |
28 virtual BrowserMainParts* CreateBrowserMainParts( | 28 virtual BrowserMainParts* CreateBrowserMainParts( |
29 const content::MainFunctionParams& parameters) OVERRIDE; | 29 const content::MainFunctionParams& parameters) OVERRIDE; |
30 virtual WebContentsView* CreateWebContentsView( | 30 virtual WebContentsView* OverrideCreateWebContentsView( |
| 31 WebContents* web_contents) OVERRIDE; |
| 32 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
31 WebContents* web_contents) OVERRIDE; | 33 WebContents* web_contents) OVERRIDE; |
32 virtual void RenderViewHostCreated( | 34 virtual void RenderViewHostCreated( |
33 RenderViewHost* render_view_host) OVERRIDE; | 35 RenderViewHost* render_view_host) OVERRIDE; |
34 virtual void RenderProcessHostCreated( | 36 virtual void RenderProcessHostCreated( |
35 RenderProcessHost* host) OVERRIDE; | 37 RenderProcessHost* host) OVERRIDE; |
36 virtual WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE; | 38 virtual WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE; |
37 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 39 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
38 const GURL& url) OVERRIDE; | 40 const GURL& url) OVERRIDE; |
39 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 41 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
40 const GURL& effective_url) OVERRIDE; | 42 const GURL& effective_url) OVERRIDE; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 const GURL& url) OVERRIDE; | 183 const GURL& url) OVERRIDE; |
182 #endif | 184 #endif |
183 | 185 |
184 private: | 186 private: |
185 ShellBrowserMainParts* shell_browser_main_parts_; | 187 ShellBrowserMainParts* shell_browser_main_parts_; |
186 }; | 188 }; |
187 | 189 |
188 } // namespace content | 190 } // namespace content |
189 | 191 |
190 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 192 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |