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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 392 } |
393 } | 393 } |
394 | 394 |
395 void ChromeContentBrowserClient::RenderProcessHostCreated( | 395 void ChromeContentBrowserClient::RenderProcessHostCreated( |
396 content::RenderProcessHost* host) { | 396 content::RenderProcessHost* host) { |
397 int id = host->GetID(); | 397 int id = host->GetID(); |
398 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 398 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
399 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( | 399 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( |
400 id, profile, profile->GetRequestContextForRenderProcess(id))); | 400 id, profile, profile->GetRequestContextForRenderProcess(id))); |
401 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); | 401 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
| 402 #if !defined(OS_ANDROID) |
402 host->GetChannel()->AddFilter(new PrintingMessageFilter()); | 403 host->GetChannel()->AddFilter(new PrintingMessageFilter()); |
| 404 #endif |
403 host->GetChannel()->AddFilter( | 405 host->GetChannel()->AddFilter( |
404 new SearchProviderInstallStateMessageFilter(id, profile)); | 406 new SearchProviderInstallStateMessageFilter(id, profile)); |
405 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 407 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
406 #if defined(OS_MACOSX) | 408 #if defined(OS_MACOSX) |
407 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); | 409 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); |
408 #endif | 410 #endif |
409 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( | 411 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( |
410 id, profile, profile->GetRequestContextForRenderProcess(id))); | 412 id, profile, profile->GetRequestContextForRenderProcess(id))); |
411 | 413 |
412 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( | 414 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1530 #if defined(USE_NSS) | 1532 #if defined(USE_NSS) |
1531 crypto::CryptoModuleBlockingPasswordDelegate* | 1533 crypto::CryptoModuleBlockingPasswordDelegate* |
1532 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1534 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
1533 const GURL& url) { | 1535 const GURL& url) { |
1534 return browser::NewCryptoModuleBlockingDialogDelegate( | 1536 return browser::NewCryptoModuleBlockingDialogDelegate( |
1535 browser::kCryptoModulePasswordKeygen, url.host()); | 1537 browser::kCryptoModulePasswordKeygen, url.host()); |
1536 } | 1538 } |
1537 #endif | 1539 #endif |
1538 | 1540 |
1539 } // namespace chrome | 1541 } // namespace chrome |
OLD | NEW |