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 28 matching lines...) Expand all Loading... |
39 URLRequestInterceptorScopedVector request_interceptors) override; | 39 URLRequestInterceptorScopedVector request_interceptors) override; |
40 net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 40 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 URLRequestInterceptorScopedVector request_interceptors) override; | 45 URLRequestInterceptorScopedVector request_interceptors) override; |
46 bool IsHandledURL(const GURL& url) override; | 46 bool IsHandledURL(const GURL& url) override; |
47 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 47 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
48 int child_process_id) override; | 48 int child_process_id) override; |
49 void AppendMappedFileCommandLineSwitches( | |
50 base::CommandLine* command_line) override; | |
51 void OverrideWebkitPrefs(RenderViewHost* render_view_host, | 49 void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
52 WebPreferences* prefs) override; | 50 WebPreferences* prefs) override; |
53 void ResourceDispatcherHostCreated() override; | 51 void ResourceDispatcherHostCreated() override; |
54 AccessTokenStore* CreateAccessTokenStore() override; | 52 AccessTokenStore* CreateAccessTokenStore() override; |
55 std::string GetDefaultDownloadName() override; | 53 std::string GetDefaultDownloadName() override; |
56 WebContentsViewDelegate* GetWebContentsViewDelegate( | 54 WebContentsViewDelegate* GetWebContentsViewDelegate( |
57 WebContents* web_contents) override; | 55 WebContents* web_contents) override; |
58 QuotaPermissionContext* CreateQuotaPermissionContext() override; | 56 QuotaPermissionContext* CreateQuotaPermissionContext() override; |
59 void SelectClientCertificate( | 57 void SelectClientCertificate( |
60 WebContents* web_contents, | 58 WebContents* web_contents, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 select_client_certificate_callback_ = select_client_certificate_callback; | 96 select_client_certificate_callback_ = select_client_certificate_callback; |
99 } | 97 } |
100 | 98 |
101 private: | 99 private: |
102 ShellBrowserContext* ShellBrowserContextForBrowserContext( | 100 ShellBrowserContext* ShellBrowserContextForBrowserContext( |
103 BrowserContext* content_browser_context); | 101 BrowserContext* content_browser_context); |
104 | 102 |
105 scoped_ptr<ShellResourceDispatcherHostDelegate> | 103 scoped_ptr<ShellResourceDispatcherHostDelegate> |
106 resource_dispatcher_host_delegate_; | 104 resource_dispatcher_host_delegate_; |
107 | 105 |
108 #if defined(OS_POSIX) && !defined(OS_MACOSX) | |
109 base::ScopedFD v8_natives_fd_; | |
110 base::ScopedFD v8_snapshot_fd_; | |
111 bool natives_fd_exists() { return v8_natives_fd_ != -1; } | |
112 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } | |
113 #endif | |
114 | |
115 base::Closure select_client_certificate_callback_; | 106 base::Closure select_client_certificate_callback_; |
116 | 107 |
117 ShellBrowserMainParts* shell_browser_main_parts_; | 108 ShellBrowserMainParts* shell_browser_main_parts_; |
118 }; | 109 }; |
119 | 110 |
120 } // namespace content | 111 } // namespace content |
121 | 112 |
122 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ | 113 #endif // CONTENT_SHELL_BROWSER_SHELL_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |