OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_SHELL_BROWSER_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" |
(...skipping 18 matching lines...) Expand all Loading... |
29 ShellContentBrowserClient(); | 29 ShellContentBrowserClient(); |
30 virtual ~ShellContentBrowserClient(); | 30 virtual ~ShellContentBrowserClient(); |
31 | 31 |
32 // ContentBrowserClient overrides. | 32 // ContentBrowserClient overrides. |
33 virtual BrowserMainParts* CreateBrowserMainParts( | 33 virtual BrowserMainParts* CreateBrowserMainParts( |
34 const MainFunctionParams& parameters) OVERRIDE; | 34 const MainFunctionParams& parameters) OVERRIDE; |
35 virtual void RenderProcessWillLaunch(RenderProcessHost* host) OVERRIDE; | 35 virtual void RenderProcessWillLaunch(RenderProcessHost* host) OVERRIDE; |
36 virtual net::URLRequestContextGetter* CreateRequestContext( | 36 virtual net::URLRequestContextGetter* CreateRequestContext( |
37 BrowserContext* browser_context, | 37 BrowserContext* browser_context, |
38 ProtocolHandlerMap* protocol_handlers, | 38 ProtocolHandlerMap* protocol_handlers, |
39 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 39 URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
40 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 40 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
41 BrowserContext* browser_context, | 41 BrowserContext* browser_context, |
42 const base::FilePath& partition_path, | 42 const base::FilePath& partition_path, |
43 bool in_memory, | 43 bool in_memory, |
44 ProtocolHandlerMap* protocol_handlers, | 44 ProtocolHandlerMap* protocol_handlers, |
45 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 45 URLRequestInterceptorScopedVector request_interceptors) OVERRIDE; |
46 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 46 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
47 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 47 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
48 int child_process_id) OVERRIDE; | 48 int child_process_id) OVERRIDE; |
49 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 49 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
50 const GURL& url, | 50 const GURL& url, |
51 WebPreferences* prefs) OVERRIDE; | 51 WebPreferences* prefs) OVERRIDE; |
52 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 52 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
53 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 53 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
54 virtual std::string GetDefaultDownloadName() OVERRIDE; | 54 virtual std::string GetDefaultDownloadName() OVERRIDE; |
55 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 55 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
56 WebContents* web_contents) OVERRIDE; | 56 WebContents* web_contents) OVERRIDE; |
57 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 57 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
58 virtual SpeechRecognitionManagerDelegate* | 58 virtual SpeechRecognitionManagerDelegate* |
59 GetSpeechRecognitionManagerDelegate() OVERRIDE; | 59 GetSpeechRecognitionManagerDelegate() OVERRIDE; |
60 virtual net::NetLog* GetNetLog() OVERRIDE; | 60 virtual net::NetLog* GetNetLog() OVERRIDE; |
61 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 61 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
62 const GURL& current_url, | 62 const GURL& current_url, |
63 const GURL& new_url) OVERRIDE; | 63 const GURL& new_url) OVERRIDE; |
64 | 64 |
65 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 65 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
66 virtual void GetAdditionalMappedFilesForChildProcess( | 66 virtual void GetAdditionalMappedFilesForChildProcess( |
67 const base::CommandLine& command_line, | 67 const base::CommandLine& command_line, |
68 int child_process_id, | 68 int child_process_id, |
69 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 69 std::vector<FileDescriptorInfo>* mappings) OVERRIDE; |
70 #endif | 70 #endif |
71 #if defined(OS_WIN) | 71 #if defined(OS_WIN) |
72 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 72 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
73 bool* success) OVERRIDE; | 73 bool* success) OVERRIDE; |
74 #endif | 74 #endif |
75 | 75 |
76 ShellBrowserContext* browser_context(); | 76 ShellBrowserContext* browser_context(); |
77 ShellBrowserContext* off_the_record_browser_context(); | 77 ShellBrowserContext* off_the_record_browser_context(); |
78 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { | 78 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
79 return resource_dispatcher_host_delegate_.get(); | 79 return resource_dispatcher_host_delegate_.get(); |
(...skipping 10 matching lines...) Expand all Loading... |
90 resource_dispatcher_host_delegate_; | 90 resource_dispatcher_host_delegate_; |
91 | 91 |
92 base::FilePath webkit_source_dir_; | 92 base::FilePath webkit_source_dir_; |
93 | 93 |
94 ShellBrowserMainParts* shell_browser_main_parts_; | 94 ShellBrowserMainParts* shell_browser_main_parts_; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace content | 97 } // namespace content |
98 | 98 |
99 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 99 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |