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 #include "content/shell/browser/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 SpeechRecognitionManagerDelegate* | 264 SpeechRecognitionManagerDelegate* |
265 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 265 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
266 return new ShellSpeechRecognitionManagerDelegate(); | 266 return new ShellSpeechRecognitionManagerDelegate(); |
267 } | 267 } |
268 | 268 |
269 net::NetLog* ShellContentBrowserClient::GetNetLog() { | 269 net::NetLog* ShellContentBrowserClient::GetNetLog() { |
270 return shell_browser_main_parts_->net_log(); | 270 return shell_browser_main_parts_->net_log(); |
271 } | 271 } |
272 | 272 |
273 bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect( | 273 bool ShellContentBrowserClient::ShouldSwapProcessesForRedirect( |
274 ResourceContext* resource_context, | 274 BrowserContext* browser_context, |
275 const GURL& current_url, | 275 const GURL& current_url, |
276 const GURL& new_url) { | 276 const GURL& new_url) { |
277 return g_swap_processes_for_redirect; | 277 return g_swap_processes_for_redirect; |
278 } | 278 } |
279 | 279 |
280 DevToolsManagerDelegate* | 280 DevToolsManagerDelegate* |
281 ShellContentBrowserClient::GetDevToolsManagerDelegate() { | 281 ShellContentBrowserClient::GetDevToolsManagerDelegate() { |
282 return new ShellDevToolsManagerDelegate(browser_context()); | 282 return new ShellDevToolsManagerDelegate(browser_context()); |
283 } | 283 } |
284 | 284 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 349 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
350 return shell_browser_main_parts_->browser_context(); | 350 return shell_browser_main_parts_->browser_context(); |
351 } | 351 } |
352 | 352 |
353 ShellBrowserContext* | 353 ShellBrowserContext* |
354 ShellContentBrowserClient::off_the_record_browser_context() { | 354 ShellContentBrowserClient::off_the_record_browser_context() { |
355 return shell_browser_main_parts_->off_the_record_browser_context(); | 355 return shell_browser_main_parts_->off_the_record_browser_context(); |
356 } | 356 } |
357 | 357 |
358 } // namespace content | 358 } // namespace content |
OLD | NEW |