| 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 <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 host->GetChannel()->AddFilter( | 720 host->GetChannel()->AddFilter( |
| 721 new SearchProviderInstallStateMessageFilter(id, profile)); | 721 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 722 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 722 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 723 #if defined(OS_MACOSX) | 723 #if defined(OS_MACOSX) |
| 724 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); | 724 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 725 #endif | 725 #endif |
| 726 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( | 726 host->GetChannel()->AddFilter(new ChromeNetBenchmarkingMessageFilter( |
| 727 id, profile, context)); | 727 id, profile, context)); |
| 728 host->GetChannel()->AddFilter( | 728 host->GetChannel()->AddFilter( |
| 729 new prerender::PrerenderMessageFilter(id, profile)); | 729 new prerender::PrerenderMessageFilter(id, profile)); |
| 730 #if defined(OS_MACOSX) | |
| 731 // TODO(tkent): Enable it for other platforms. | |
| 732 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); | 730 host->GetChannel()->AddFilter(new ValidationMessageMessageFilter(id)); |
| 733 #endif | |
| 734 | 731 |
| 735 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 732 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 736 profile->IsOffTheRecord())); | 733 profile->IsOffTheRecord())); |
| 737 | 734 |
| 738 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( | 735 host->Send(new ChromeViewMsg_SetExtensionActivityLogEnabled( |
| 739 IsExtensionActivityLogEnabledForProfile(profile))); | 736 IsExtensionActivityLogEnabledForProfile(profile))); |
| 740 | 737 |
| 741 SendExtensionWebRequestStatusToHost(host); | 738 SendExtensionWebRequestStatusToHost(host); |
| 742 | 739 |
| 743 RendererContentSettingRules rules; | 740 RendererContentSettingRules rules; |
| (...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2247 #if defined(USE_NSS) | 2244 #if defined(USE_NSS) |
| 2248 crypto::CryptoModuleBlockingPasswordDelegate* | 2245 crypto::CryptoModuleBlockingPasswordDelegate* |
| 2249 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 2246 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 2250 const GURL& url) { | 2247 const GURL& url) { |
| 2251 return chrome::NewCryptoModuleBlockingDialogDelegate( | 2248 return chrome::NewCryptoModuleBlockingDialogDelegate( |
| 2252 chrome::kCryptoModulePasswordKeygen, url.host()); | 2249 chrome::kCryptoModulePasswordKeygen, url.host()); |
| 2253 } | 2250 } |
| 2254 #endif | 2251 #endif |
| 2255 | 2252 |
| 2256 } // namespace chrome | 2253 } // namespace chrome |
| OLD | NEW |