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 27 matching lines...) Expand all Loading... |
38 BrowserContext* browser_context, | 38 BrowserContext* browser_context, |
39 ProtocolHandlerMap* protocol_handlers, | 39 ProtocolHandlerMap* protocol_handlers, |
40 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 40 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
41 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 41 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
42 BrowserContext* browser_context, | 42 BrowserContext* browser_context, |
43 const base::FilePath& partition_path, | 43 const base::FilePath& partition_path, |
44 bool in_memory, | 44 bool in_memory, |
45 ProtocolHandlerMap* protocol_handlers, | 45 ProtocolHandlerMap* protocol_handlers, |
46 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; | 46 ProtocolHandlerScopedVector protocol_interceptors) OVERRIDE; |
47 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 47 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
48 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 48 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
49 int child_process_id) OVERRIDE; | 49 int child_process_id) OVERRIDE; |
50 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 50 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
51 const GURL& url, | 51 const GURL& url, |
52 WebPreferences* prefs) OVERRIDE; | 52 WebPreferences* prefs) OVERRIDE; |
53 virtual void ResourceDispatcherHostCreated() OVERRIDE; | 53 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
54 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; | 54 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE; |
55 virtual std::string GetDefaultDownloadName() OVERRIDE; | 55 virtual std::string GetDefaultDownloadName() OVERRIDE; |
56 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context, | 56 virtual bool SupportsBrowserPlugin(content::BrowserContext* browser_context, |
57 const GURL& url) OVERRIDE; | 57 const GURL& url) OVERRIDE; |
58 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 58 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
59 WebContents* web_contents) OVERRIDE; | 59 WebContents* web_contents) OVERRIDE; |
60 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; | 60 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; |
61 virtual SpeechRecognitionManagerDelegate* | 61 virtual SpeechRecognitionManagerDelegate* |
62 GetSpeechRecognitionManagerDelegate() OVERRIDE; | 62 GetSpeechRecognitionManagerDelegate() OVERRIDE; |
63 virtual net::NetLog* GetNetLog() OVERRIDE; | 63 virtual net::NetLog* GetNetLog() OVERRIDE; |
64 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, | 64 virtual bool ShouldSwapProcessesForRedirect(ResourceContext* resource_context, |
65 const GURL& current_url, | 65 const GURL& current_url, |
66 const GURL& new_url) OVERRIDE; | 66 const GURL& new_url) OVERRIDE; |
67 | 67 |
68 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 68 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
69 virtual void GetAdditionalMappedFilesForChildProcess( | 69 virtual void GetAdditionalMappedFilesForChildProcess( |
70 const CommandLine& command_line, | 70 const base::CommandLine& command_line, |
71 int child_process_id, | 71 int child_process_id, |
72 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 72 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
73 #endif | 73 #endif |
74 | 74 |
75 ShellBrowserContext* browser_context(); | 75 ShellBrowserContext* browser_context(); |
76 ShellBrowserContext* off_the_record_browser_context(); | 76 ShellBrowserContext* off_the_record_browser_context(); |
77 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { | 77 ShellResourceDispatcherHostDelegate* resource_dispatcher_host_delegate() { |
78 return resource_dispatcher_host_delegate_.get(); | 78 return resource_dispatcher_host_delegate_.get(); |
79 } | 79 } |
80 ShellBrowserMainParts* shell_browser_main_parts() { | 80 ShellBrowserMainParts* shell_browser_main_parts() { |
81 return shell_browser_main_parts_; | 81 return shell_browser_main_parts_; |
82 } | 82 } |
83 | 83 |
84 private: | 84 private: |
85 ShellBrowserContext* ShellBrowserContextForBrowserContext( | 85 ShellBrowserContext* ShellBrowserContextForBrowserContext( |
86 BrowserContext* content_browser_context); | 86 BrowserContext* content_browser_context); |
87 | 87 |
88 scoped_ptr<ShellResourceDispatcherHostDelegate> | 88 scoped_ptr<ShellResourceDispatcherHostDelegate> |
89 resource_dispatcher_host_delegate_; | 89 resource_dispatcher_host_delegate_; |
90 | 90 |
91 base::FilePath webkit_source_dir_; | 91 base::FilePath webkit_source_dir_; |
92 | 92 |
93 ShellBrowserMainParts* shell_browser_main_parts_; | 93 ShellBrowserMainParts* shell_browser_main_parts_; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace content | 96 } // namespace content |
97 | 97 |
98 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 98 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |