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 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.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 ShellBrowserContext; | 17 class ShellBrowserContext; |
18 class ShellBrowserMainParts; | 18 class ShellBrowserMainParts; |
19 class ShellResourceDispatcherHostDelegate; | 19 class ShellResourceDispatcherHostDelegate; |
20 | 20 |
21 class ShellContentBrowserClient : public ContentBrowserClient { | 21 class ShellContentBrowserClient : public ContentBrowserClient { |
22 public: | 22 public: |
23 ShellContentBrowserClient(); | 23 ShellContentBrowserClient(); |
24 virtual ~ShellContentBrowserClient(); | 24 virtual ~ShellContentBrowserClient(); |
25 | 25 |
26 // ContentBrowserClient overrides. | 26 // ContentBrowserClient overrides. |
27 virtual BrowserMainParts* CreateBrowserMainParts( | 27 virtual BrowserMainParts* CreateBrowserMainParts( |
28 const MainFunctionParams& parameters) OVERRIDE; | 28 const MainFunctionParams& parameters) OVERRIDE; |
29 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE; | 29 virtual void RenderProcessHostCreated(RenderProcessHost* host) OVERRIDE; |
| 30 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
30 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 31 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
31 int child_process_id) OVERRIDE; | 32 int child_process_id) OVERRIDE; |
32 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 33 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
33 const GURL& url, | 34 const GURL& url, |
34 webkit_glue::WebPreferences* prefs) OVERRIDE; | 35 webkit_glue::WebPreferences* prefs) OVERRIDE; |
35 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 36 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
36 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 37 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
37 virtual std::string GetDefaultDownloadName() OVERRIDE; | 38 virtual std::string GetDefaultDownloadName() OVERRIDE; |
38 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 39 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
39 WebContents* web_contents) OVERRIDE; | 40 WebContents* web_contents) OVERRIDE; |
(...skipping 26 matching lines...) Expand all Loading... |
66 resource_dispatcher_host_delegate_; | 67 resource_dispatcher_host_delegate_; |
67 | 68 |
68 FilePath webkit_source_dir_; | 69 FilePath webkit_source_dir_; |
69 | 70 |
70 ShellBrowserMainParts* shell_browser_main_parts_; | 71 ShellBrowserMainParts* shell_browser_main_parts_; |
71 }; | 72 }; |
72 | 73 |
73 } // namespace content | 74 } // namespace content |
74 | 75 |
75 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ | 76 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |