| 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 } | 375 } |
| 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 host->GetChannel()->AddFilter(new PrintingMessageFilter()); | 386 host->GetChannel()->AddFilter(new PrintingMessageFilter()); |
| 387 #endif |
| 386 host->GetChannel()->AddFilter( | 388 host->GetChannel()->AddFilter( |
| 387 new SearchProviderInstallStateMessageFilter(id, profile)); | 389 new SearchProviderInstallStateMessageFilter(id, profile)); |
| 388 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 390 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
| 389 #if defined(OS_MACOSX) | 391 #if defined(OS_MACOSX) |
| 390 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); | 392 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); |
| 391 #endif | 393 #endif |
| 392 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( | 394 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( |
| 393 id, profile, profile->GetRequestContextForRenderProcess(id))); | 395 id, profile, profile->GetRequestContextForRenderProcess(id))); |
| 394 | 396 |
| 395 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 397 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1470 #if defined(USE_NSS) | 1472 #if defined(USE_NSS) |
| 1471 crypto::CryptoModuleBlockingPasswordDelegate* | 1473 crypto::CryptoModuleBlockingPasswordDelegate* |
| 1472 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1474 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 1473 const GURL& url) { | 1475 const GURL& url) { |
| 1474 return browser::NewCryptoModuleBlockingDialogDelegate( | 1476 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 1475 browser::kCryptoModulePasswordKeygen, url.host()); | 1477 browser::kCryptoModulePasswordKeygen, url.host()); |
| 1476 } | 1478 } |
| 1477 #endif | 1479 #endif |
| 1478 | 1480 |
| 1479 } // namespace chrome | 1481 } // namespace chrome |
| OLD | NEW |