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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/app/breakpad_mac.h" | 8 #include "chrome/app/breakpad_mac.h" |
9 #include "chrome/browser/browser_about_handler.h" | 9 #include "chrome/browser/browser_about_handler.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/speech/chrome_speech_input_manager.h" | 39 #include "chrome/browser/speech/chrome_speech_input_manager.h" |
40 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" | 40 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" |
41 #include "chrome/browser/ssl/ssl_add_cert_handler.h" | 41 #include "chrome/browser/ssl/ssl_add_cert_handler.h" |
42 #include "chrome/browser/ssl/ssl_blocking_page.h" | 42 #include "chrome/browser/ssl/ssl_blocking_page.h" |
43 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 43 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
44 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" | 44 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" |
45 #include "chrome/browser/tab_contents/tab_util.h" | 45 #include "chrome/browser/tab_contents/tab_util.h" |
46 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 46 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
47 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" | 47 #include "chrome/browser/ui/webui/chrome_web_ui_factory.h" |
48 #include "chrome/common/child_process_logging.h" | 48 #include "chrome/common/child_process_logging.h" |
| 49 #include "chrome/common/chrome_constants.h" |
49 #include "chrome/common/chrome_switches.h" | 50 #include "chrome/common/chrome_switches.h" |
50 #include "chrome/common/extensions/extension.h" | 51 #include "chrome/common/extensions/extension.h" |
51 #include "chrome/common/logging_chrome.h" | 52 #include "chrome/common/logging_chrome.h" |
52 #include "chrome/common/pref_names.h" | 53 #include "chrome/common/pref_names.h" |
53 #include "chrome/common/render_messages.h" | 54 #include "chrome/common/render_messages.h" |
54 #include "chrome/common/url_constants.h" | 55 #include "chrome/common/url_constants.h" |
55 #include "content/browser/browser_url_handler.h" | 56 #include "content/browser/browser_url_handler.h" |
56 #include "content/browser/browsing_instance.h" | 57 #include "content/browser/browsing_instance.h" |
57 #include "content/browser/debugger/devtools_handler.h" | 58 #include "content/browser/debugger/devtools_handler.h" |
58 #include "content/browser/plugin_process_host.h" | 59 #include "content/browser/plugin_process_host.h" |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 if (process_type == switches::kPpapiPluginProcess) | 763 if (process_type == switches::kPpapiPluginProcess) |
763 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); | 764 return PpapiCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); |
764 | 765 |
765 if (process_type == switches::kGpuProcess) | 766 if (process_type == switches::kGpuProcess) |
766 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); | 767 return GpuCrashHandlerHostLinux::GetInstance()->GetDeathSignalSocket(); |
767 | 768 |
768 return -1; | 769 return -1; |
769 } | 770 } |
770 #endif // defined(OS_LINUX) | 771 #endif // defined(OS_LINUX) |
771 | 772 |
| 773 #if defined(OS_WIN) |
| 774 const wchar_t* ChromeContentBrowserClient::GetResourceDllName() { |
| 775 return chrome::kBrowserResourcesDll; |
| 776 } |
| 777 #endif |
| 778 |
772 #if defined(USE_NSS) | 779 #if defined(USE_NSS) |
773 crypto::CryptoModuleBlockingPasswordDelegate* | 780 crypto::CryptoModuleBlockingPasswordDelegate* |
774 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 781 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
775 const GURL& url) { | 782 const GURL& url) { |
776 return browser::NewCryptoModuleBlockingDialogDelegate( | 783 return browser::NewCryptoModuleBlockingDialogDelegate( |
777 browser::kCryptoModulePasswordKeygen, url.host()); | 784 browser::kCryptoModulePasswordKeygen, url.host()); |
778 } | 785 } |
779 #endif | 786 #endif |
780 | 787 |
781 } // namespace chrome | 788 } // namespace chrome |
OLD | NEW |