OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/shell/shell_content_browser_client.h" | 5 #include "content/shell/shell_content_browser_client.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "content/browser/webui/empty_web_ui_factory.h" | 8 #include "content/browser/webui/empty_web_ui_factory.h" |
9 #include "content/shell/shell.h" | 9 #include "content/shell/shell.h" |
10 #include "content/shell/shell_browser_main.h" | 10 #include "content/shell/shell_browser_main.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 } | 57 } |
58 | 58 |
59 void ShellContentBrowserClient::BrowserRenderProcessHostCreated( | 59 void ShellContentBrowserClient::BrowserRenderProcessHostCreated( |
60 BrowserRenderProcessHost* host) { | 60 BrowserRenderProcessHost* host) { |
61 } | 61 } |
62 | 62 |
63 void ShellContentBrowserClient::PluginProcessHostCreated( | 63 void ShellContentBrowserClient::PluginProcessHostCreated( |
64 PluginProcessHost* host) { | 64 PluginProcessHost* host) { |
65 } | 65 } |
66 | 66 |
67 void ShellContentBrowserClient::WorkerProcessHostCreated( | |
68 WorkerProcessHost* host) { | |
69 } | |
70 | |
71 WebUIFactory* ShellContentBrowserClient::GetWebUIFactory() { | 67 WebUIFactory* ShellContentBrowserClient::GetWebUIFactory() { |
72 // Return an empty factory so callsites don't have to check for NULL. | 68 // Return an empty factory so callsites don't have to check for NULL. |
73 return EmptyWebUIFactory::GetInstance(); | 69 return EmptyWebUIFactory::GetInstance(); |
74 } | 70 } |
75 | 71 |
76 GURL ShellContentBrowserClient::GetEffectiveURL( | 72 GURL ShellContentBrowserClient::GetEffectiveURL( |
77 content::BrowserContext* browser_context, const GURL& url) { | 73 content::BrowserContext* browser_context, const GURL& url) { |
78 return GURL(); | 74 return GURL(); |
79 } | 75 } |
80 | 76 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 int render_view_id, | 151 int render_view_id, |
156 net::CookieOptions* options) { | 152 net::CookieOptions* options) { |
157 return true; | 153 return true; |
158 } | 154 } |
159 | 155 |
160 bool ShellContentBrowserClient::AllowSaveLocalState( | 156 bool ShellContentBrowserClient::AllowSaveLocalState( |
161 const content::ResourceContext& context) { | 157 const content::ResourceContext& context) { |
162 return true; | 158 return true; |
163 } | 159 } |
164 | 160 |
| 161 bool ShellContentBrowserClient::AllowWorkerDatabase( |
| 162 int worker_route_id, |
| 163 const GURL& url, |
| 164 const string16& name, |
| 165 const string16& display_name, |
| 166 unsigned long estimated_size, |
| 167 WorkerProcessHost* worker_process_host) { |
| 168 return true; |
| 169 } |
| 170 |
| 171 bool ShellContentBrowserClient::AllowWorkerFileSystem( |
| 172 int worker_route_id, |
| 173 const GURL& url, |
| 174 WorkerProcessHost* worker_process_host) { |
| 175 return true; |
| 176 } |
| 177 |
165 QuotaPermissionContext* | 178 QuotaPermissionContext* |
166 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 179 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
167 return NULL; | 180 return NULL; |
168 } | 181 } |
169 | 182 |
170 net::URLRequestContext* ShellContentBrowserClient::OverrideRequestContextForURL( | 183 net::URLRequestContext* ShellContentBrowserClient::OverrideRequestContextForURL( |
171 const GURL& url, const content::ResourceContext& context) { | 184 const GURL& url, const content::ResourceContext& context) { |
172 return NULL; | 185 return NULL; |
173 } | 186 } |
174 | 187 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 tab_contents_view->tab_contents()->browser_context(), | 342 tab_contents_view->tab_contents()->browser_context(), |
330 GURL(), | 343 GURL(), |
331 tab_contents_view->tab_contents()->GetSiteInstance(), | 344 tab_contents_view->tab_contents()->GetSiteInstance(), |
332 route_id, | 345 route_id, |
333 tab_contents_view->tab_contents()); | 346 tab_contents_view->tab_contents()); |
334 return shell->tab_contents(); | 347 return shell->tab_contents(); |
335 } | 348 } |
336 #endif | 349 #endif |
337 | 350 |
338 } // namespace content | 351 } // namespace content |
OLD | NEW |