| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 new ExtensionMessageHandler(render_view_host); | 375 new ExtensionMessageHandler(render_view_host); |
| 376 } | 376 } |
| 377 | 377 |
| 378 void ChromeContentBrowserClient::RenderProcessHostCreated( | 378 void ChromeContentBrowserClient::RenderProcessHostCreated( |
| 379 content::RenderProcessHost* host) { | 379 content::RenderProcessHost* host) { |
| 380 int id = host->GetID(); | 380 int id = host->GetID(); |
| 381 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 381 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| 382 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( | 382 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( |
| 383 id, profile, profile->GetRequestContextForRenderProcess(id))); | 383 id, profile, profile->GetRequestContextForRenderProcess(id))); |
| 384 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); | 384 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
| 385 #if !defined(OS_ANDROID) | 385 #if defined(ENABLE_PRINTING) |
| 386 host->GetChannel()->AddFilter(new PrintingMessageFilter(id)); | 386 host->GetChannel()->AddFilter(new PrintingMessageFilter(id)); |
| 387 #endif | 387 #endif |
| 388 host->GetChannel()->AddFilter( | 388 host->GetChannel()->AddFilter( |
| 389 new SearchProviderInstallStateMessageFilter(id, profile)); | 389 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 390 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 390 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 391 #if defined(OS_MACOSX) | 391 #if defined(OS_MACOSX) |
| 392 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); | 392 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); |
| 393 #endif | 393 #endif |
| 394 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( | 394 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( |
| 395 id, profile, profile->GetRequestContextForRenderProcess(id))); | 395 id, profile, profile->GetRequestContextForRenderProcess(id))); |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 #if defined(USE_NSS) | 1608 #if defined(USE_NSS) |
| 1609 crypto::CryptoModuleBlockingPasswordDelegate* | 1609 crypto::CryptoModuleBlockingPasswordDelegate* |
| 1610 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1610 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 1611 const GURL& url) { | 1611 const GURL& url) { |
| 1612 return browser::NewCryptoModuleBlockingDialogDelegate( | 1612 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 1613 browser::kCryptoModulePasswordKeygen, url.host()); | 1613 browser::kCryptoModulePasswordKeygen, url.host()); |
| 1614 } | 1614 } |
| 1615 #endif | 1615 #endif |
| 1616 | 1616 |
| 1617 } // namespace chrome | 1617 } // namespace chrome |
| OLD | NEW |