| 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "chrome/common/pref_names.h" | 65 #include "chrome/common/pref_names.h" |
| 66 #include "chrome/common/render_messages.h" | 66 #include "chrome/common/render_messages.h" |
| 67 #include "chrome/common/url_constants.h" | 67 #include "chrome/common/url_constants.h" |
| 68 #include "content/browser/browser_url_handler.h" | 68 #include "content/browser/browser_url_handler.h" |
| 69 #include "content/browser/browsing_instance.h" | 69 #include "content/browser/browsing_instance.h" |
| 70 #include "content/browser/child_process_security_policy.h" | 70 #include "content/browser/child_process_security_policy.h" |
| 71 #include "content/browser/gpu/gpu_data_manager.h" | 71 #include "content/browser/gpu/gpu_data_manager.h" |
| 72 #include "content/browser/gpu/gpu_process_host.h" | 72 #include "content/browser/gpu/gpu_process_host.h" |
| 73 #include "content/browser/plugin_process_host.h" | 73 #include "content/browser/plugin_process_host.h" |
| 74 #include "content/browser/renderer_host/render_view_host.h" | 74 #include "content/browser/renderer_host/render_view_host.h" |
| 75 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
| 75 #include "content/browser/resource_context.h" | 76 #include "content/browser/resource_context.h" |
| 76 #include "content/browser/site_instance.h" | 77 #include "content/browser/site_instance.h" |
| 77 #include "content/browser/ssl/ssl_cert_error_handler.h" | 78 #include "content/browser/ssl/ssl_cert_error_handler.h" |
| 78 #include "content/browser/ssl/ssl_client_auth_handler.h" | 79 #include "content/browser/ssl/ssl_client_auth_handler.h" |
| 79 #include "content/browser/tab_contents/tab_contents.h" | 80 #include "content/browser/tab_contents/tab_contents.h" |
| 80 #include "content/browser/tab_contents/tab_contents_view.h" | 81 #include "content/browser/tab_contents/tab_contents_view.h" |
| 81 #include "content/browser/worker_host/worker_process_host.h" | 82 #include "content/browser/worker_host/worker_process_host.h" |
| 82 #include "content/public/browser/browser_main_parts.h" | 83 #include "content/public/browser/browser_main_parts.h" |
| 83 #include "content/public/browser/render_process_host.h" | 84 #include "content/public/browser/render_process_host.h" |
| 84 #include "grit/generated_resources.h" | 85 #include "grit/generated_resources.h" |
| (...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 1082 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
| 1082 // Check if it's an extension-created worker, in which case we want to use | 1083 // Check if it's an extension-created worker, in which case we want to use |
| 1083 // the name of the extension. | 1084 // the name of the extension. |
| 1084 ProfileIOData* io_data = | 1085 ProfileIOData* io_data = |
| 1085 reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL)); | 1086 reinterpret_cast<ProfileIOData*>(context.GetUserData(NULL)); |
| 1086 const Extension* extension = | 1087 const Extension* extension = |
| 1087 io_data->GetExtensionInfoMap()->extensions().GetByID(url.host()); | 1088 io_data->GetExtensionInfoMap()->extensions().GetByID(url.host()); |
| 1088 return extension ? extension->name() : std::string(); | 1089 return extension ? extension->name() : std::string(); |
| 1089 } | 1090 } |
| 1090 | 1091 |
| 1091 ResourceDispatcherHost* | 1092 void ChromeContentBrowserClient::ResourceDispatcherHostCreated() { |
| 1092 ChromeContentBrowserClient::GetResourceDispatcherHost() { | 1093 return g_browser_process->ResourceDispatcherHostCreated(); |
| 1093 return g_browser_process->resource_dispatcher_host(); | |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 ui::Clipboard* ChromeContentBrowserClient::GetClipboard() { | 1096 ui::Clipboard* ChromeContentBrowserClient::GetClipboard() { |
| 1097 return g_browser_process->clipboard(); | 1097 return g_browser_process->clipboard(); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 MHTMLGenerationManager* | 1100 MHTMLGenerationManager* |
| 1101 ChromeContentBrowserClient::GetMHTMLGenerationManager() { | 1101 ChromeContentBrowserClient::GetMHTMLGenerationManager() { |
| 1102 return g_browser_process->mhtml_generation_manager(); | 1102 return g_browser_process->mhtml_generation_manager(); |
| 1103 } | 1103 } |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1472 #if defined(USE_NSS) | 1472 #if defined(USE_NSS) |
| 1473 crypto::CryptoModuleBlockingPasswordDelegate* | 1473 crypto::CryptoModuleBlockingPasswordDelegate* |
| 1474 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1474 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 1475 const GURL& url) { | 1475 const GURL& url) { |
| 1476 return browser::NewCryptoModuleBlockingDialogDelegate( | 1476 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 1477 browser::kCryptoModulePasswordKeygen, url.host()); | 1477 browser::kCryptoModulePasswordKeygen, url.host()); |
| 1478 } | 1478 } |
| 1479 #endif | 1479 #endif |
| 1480 | 1480 |
| 1481 } // namespace chrome | 1481 } // namespace chrome |
| OLD | NEW |