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/public/browser/resource_dispatcher_host.h" |
10 #include "content/shell/shell.h" | 10 #include "content/shell/shell.h" |
11 #include "content/shell/shell_browser_main_parts.h" | 11 #include "content/shell/shell_browser_main_parts.h" |
12 #include "content/shell/shell_devtools_delegate.h" | 12 #include "content/shell/shell_devtools_delegate.h" |
13 #include "content/shell/shell_render_view_host_observer.h" | 13 #include "content/shell/shell_render_view_host_observer.h" |
14 #include "content/shell/shell_resource_dispatcher_host_delegate.h" | 14 #include "content/shell/shell_resource_dispatcher_host_delegate.h" |
15 #include "content/shell/shell_switches.h" | 15 #include "content/shell/shell_switches.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 | 20 |
21 ShellContentBrowserClient::ShellContentBrowserClient() | 21 ShellContentBrowserClient::ShellContentBrowserClient() |
22 : shell_browser_main_parts_(NULL) { | 22 : shell_browser_main_parts_(NULL) { |
23 } | 23 } |
24 | 24 |
25 ShellContentBrowserClient::~ShellContentBrowserClient() { | 25 ShellContentBrowserClient::~ShellContentBrowserClient() { |
26 } | 26 } |
27 | 27 |
28 BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts( | 28 BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts( |
29 const content::MainFunctionParams& parameters) { | 29 const content::MainFunctionParams& parameters) { |
30 shell_browser_main_parts_ = new ShellBrowserMainParts(parameters); | 30 shell_browser_main_parts_ = new ShellBrowserMainParts(parameters); |
31 return shell_browser_main_parts_; | 31 return shell_browser_main_parts_; |
32 } | 32 } |
33 | 33 |
34 WebContentsView* ShellContentBrowserClient::OverrideCreateWebContentsView( | 34 WebContentsView* ShellContentBrowserClient::OverrideCreateWebContentsView( |
35 WebContents* web_contents) { | 35 WebContents* web_contents) { |
36 return NULL; | 36 return NULL; |
37 } | 37 } |
38 | 38 |
39 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( | 39 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( |
40 content::WebContents* web_contents) { | 40 content::WebContents* web_contents) { |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 352 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
353 return NULL; | 353 return NULL; |
354 } | 354 } |
355 #endif | 355 #endif |
356 | 356 |
357 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 357 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
358 return shell_browser_main_parts_->browser_context(); | 358 return shell_browser_main_parts_->browser_context(); |
359 } | 359 } |
360 | 360 |
361 } // namespace content | 361 } // namespace content |
OLD | NEW |