| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 host->channel()->AddFilter(new ChromeRenderMessageFilter( | 114 host->channel()->AddFilter(new ChromeRenderMessageFilter( |
| 115 id, profile, profile->GetRequestContextForRenderProcess(id))); | 115 id, profile, profile->GetRequestContextForRenderProcess(id))); |
| 116 host->channel()->AddFilter(new PrintingMessageFilter()); | 116 host->channel()->AddFilter(new PrintingMessageFilter()); |
| 117 host->channel()->AddFilter( | 117 host->channel()->AddFilter( |
| 118 new SearchProviderInstallStateMessageFilter(id, profile)); | 118 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 119 host->channel()->AddFilter(new SpellCheckMessageFilter(id)); | 119 host->channel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 120 #if defined(OS_MACOSX) | 120 #if defined(OS_MACOSX) |
| 121 host->channel()->AddFilter(new TextInputClientMessageFilter(host->id())); | 121 host->channel()->AddFilter(new TextInputClientMessageFilter(host->id())); |
| 122 #endif | 122 #endif |
| 123 | 123 |
| 124 host->Send(new ViewMsg_SetIsIncognitoProcess(profile->IsOffTheRecord())); | 124 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| 125 profile->IsOffTheRecord())); |
| 125 } | 126 } |
| 126 | 127 |
| 127 void ChromeContentBrowserClient::PluginProcessHostCreated( | 128 void ChromeContentBrowserClient::PluginProcessHostCreated( |
| 128 PluginProcessHost* host) { | 129 PluginProcessHost* host) { |
| 129 host->AddFilter(new ChromePluginMessageFilter(host)); | 130 host->AddFilter(new ChromePluginMessageFilter(host)); |
| 130 } | 131 } |
| 131 | 132 |
| 132 void ChromeContentBrowserClient::WorkerProcessHostCreated( | 133 void ChromeContentBrowserClient::WorkerProcessHostCreated( |
| 133 WorkerProcessHost* host) { | 134 WorkerProcessHost* host) { |
| 134 host->AddFilter(new ChromeWorkerMessageFilter(host)); | 135 host->AddFilter(new ChromeWorkerMessageFilter(host)); |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 #if defined(USE_NSS) | 719 #if defined(USE_NSS) |
| 719 crypto::CryptoModuleBlockingPasswordDelegate* | 720 crypto::CryptoModuleBlockingPasswordDelegate* |
| 720 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 721 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 721 const GURL& url) { | 722 const GURL& url) { |
| 722 return browser::NewCryptoModuleBlockingDialogDelegate( | 723 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 723 browser::kCryptoModulePasswordKeygen, url.host()); | 724 browser::kCryptoModulePasswordKeygen, url.host()); |
| 724 } | 725 } |
| 725 #endif | 726 #endif |
| 726 | 727 |
| 727 } // namespace chrome | 728 } // namespace chrome |
| OLD | NEW |