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/file_path.h" | 7 #include "base/file_path.h" |
8 #include "content/browser/webui/empty_web_ui_factory.h" | |
9 #include "content/shell/shell.h" | 8 #include "content/shell/shell.h" |
10 #include "content/shell/shell_browser_main.h" | 9 #include "content/shell/shell_browser_main.h" |
11 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
12 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
13 #include "webkit/glue/webpreferences.h" | 12 #include "webkit/glue/webpreferences.h" |
14 | 13 |
15 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
16 #include "content/browser/tab_contents/tab_contents.h" | 15 #include "content/browser/tab_contents/tab_contents.h" |
17 #include "content/browser/tab_contents/tab_contents_view_win.h" | 16 #include "content/browser/tab_contents/tab_contents_view_win.h" |
18 #include "content/common/view_messages.h" | 17 #include "content/common/view_messages.h" |
(...skipping 27 matching lines...) Expand all Loading... |
46 } | 45 } |
47 | 46 |
48 void ShellContentBrowserClient::RenderViewHostCreated( | 47 void ShellContentBrowserClient::RenderViewHostCreated( |
49 RenderViewHost* render_view_host) { | 48 RenderViewHost* render_view_host) { |
50 } | 49 } |
51 | 50 |
52 void ShellContentBrowserClient::RenderProcessHostCreated( | 51 void ShellContentBrowserClient::RenderProcessHostCreated( |
53 RenderProcessHost* host) { | 52 RenderProcessHost* host) { |
54 } | 53 } |
55 | 54 |
56 WebUIFactory* ShellContentBrowserClient::GetWebUIFactory() { | 55 WebUIControllerFactory* ShellContentBrowserClient::GetWebUIControllerFactory() { |
57 // Return an empty factory so callsites don't have to check for NULL. | 56 return NULL; |
58 return EmptyWebUIFactory::GetInstance(); | |
59 } | 57 } |
60 | 58 |
61 GURL ShellContentBrowserClient::GetEffectiveURL( | 59 GURL ShellContentBrowserClient::GetEffectiveURL( |
62 content::BrowserContext* browser_context, const GURL& url) { | 60 content::BrowserContext* browser_context, const GURL& url) { |
63 return GURL(); | 61 return GURL(); |
64 } | 62 } |
65 | 63 |
66 bool ShellContentBrowserClient::ShouldUseProcessPerSite( | 64 bool ShellContentBrowserClient::ShouldUseProcessPerSite( |
67 BrowserContext* browser_context, const GURL& effective_url) { | 65 BrowserContext* browser_context, const GURL& effective_url) { |
68 return false; | 66 return false; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 #endif | 314 #endif |
317 | 315 |
318 #if defined(USE_NSS) | 316 #if defined(USE_NSS) |
319 crypto::CryptoModuleBlockingPasswordDelegate* | 317 crypto::CryptoModuleBlockingPasswordDelegate* |
320 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 318 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
321 return NULL; | 319 return NULL; |
322 } | 320 } |
323 #endif | 321 #endif |
324 | 322 |
325 } // namespace content | 323 } // namespace content |
OLD | NEW |