| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "content/public/browser/resource_dispatcher_host.h" |
| 9 #include "content/shell/shell.h" | 10 #include "content/shell/shell.h" |
| 10 #include "content/shell/shell_browser_context.h" | 11 #include "content/shell/shell_browser_context.h" |
| 11 #include "content/shell/shell_browser_main_parts.h" | 12 #include "content/shell/shell_browser_main_parts.h" |
| 12 #include "content/shell/shell_devtools_delegate.h" | 13 #include "content/shell/shell_devtools_delegate.h" |
| 13 #include "content/shell/shell_render_view_host_observer.h" | 14 #include "content/shell/shell_render_view_host_observer.h" |
| 15 #include "content/shell/shell_resource_dispatcher_host_delegate.h" |
| 14 #include "content/shell/shell_switches.h" | 16 #include "content/shell/shell_switches.h" |
| 15 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 18 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 | 19 |
| 18 namespace content { | 20 namespace content { |
| 19 | 21 |
| 20 ShellContentBrowserClient::ShellContentBrowserClient() | 22 ShellContentBrowserClient::ShellContentBrowserClient() |
| 21 : shell_browser_main_parts_(NULL) { | 23 : shell_browser_main_parts_(NULL) { |
| 22 } | 24 } |
| 23 | 25 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 *no_javascript_access = false; | 265 *no_javascript_access = false; |
| 264 return true; | 266 return true; |
| 265 } | 267 } |
| 266 | 268 |
| 267 std::string ShellContentBrowserClient::GetWorkerProcessTitle( | 269 std::string ShellContentBrowserClient::GetWorkerProcessTitle( |
| 268 const GURL& url, content::ResourceContext* context) { | 270 const GURL& url, content::ResourceContext* context) { |
| 269 return std::string(); | 271 return std::string(); |
| 270 } | 272 } |
| 271 | 273 |
| 272 void ShellContentBrowserClient::ResourceDispatcherHostCreated() { | 274 void ShellContentBrowserClient::ResourceDispatcherHostCreated() { |
| 275 resource_dispatcher_host_delegate_.reset( |
| 276 new ShellResourceDispatcherHostDelegate()); |
| 277 ResourceDispatcherHost::Get()->SetDelegate( |
| 278 resource_dispatcher_host_delegate_.get()); |
| 273 } | 279 } |
| 274 | 280 |
| 275 SpeechRecognitionManagerDelegate* | 281 SpeechRecognitionManagerDelegate* |
| 276 ShellContentBrowserClient::GetSpeechRecognitionManagerDelegate() { | 282 ShellContentBrowserClient::GetSpeechRecognitionManagerDelegate() { |
| 277 return NULL; | 283 return NULL; |
| 278 } | 284 } |
| 279 | 285 |
| 280 ui::Clipboard* ShellContentBrowserClient::GetClipboard() { | 286 ui::Clipboard* ShellContentBrowserClient::GetClipboard() { |
| 281 return shell_browser_main_parts_->GetClipboard(); | 287 return shell_browser_main_parts_->GetClipboard(); |
| 282 } | 288 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 352 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
| 347 return NULL; | 353 return NULL; |
| 348 } | 354 } |
| 349 #endif | 355 #endif |
| 350 | 356 |
| 351 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 357 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
| 352 return ShellBrowserContext::GetInstance(); | 358 return ShellBrowserContext::GetInstance(); |
| 353 } | 359 } |
| 354 | 360 |
| 355 } // namespace content | 361 } // namespace content |
| OLD | NEW |