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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 } | 406 } |
407 | 407 |
408 void ChromeContentBrowserClient::RenderProcessHostCreated( | 408 void ChromeContentBrowserClient::RenderProcessHostCreated( |
409 content::RenderProcessHost* host) { | 409 content::RenderProcessHost* host) { |
410 int id = host->GetID(); | 410 int id = host->GetID(); |
411 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 411 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
412 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( | 412 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( |
413 id, profile, profile->GetRequestContextForRenderProcess(id))); | 413 id, profile, profile->GetRequestContextForRenderProcess(id))); |
414 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); | 414 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
415 #if !defined(OS_ANDROID) | 415 #if !defined(OS_ANDROID) |
416 host->GetChannel()->AddFilter(new PrintingMessageFilter()); | 416 host->GetChannel()->AddFilter(new PrintingMessageFilter(id)); |
417 #endif | 417 #endif |
418 host->GetChannel()->AddFilter( | 418 host->GetChannel()->AddFilter( |
419 new SearchProviderInstallStateMessageFilter(id, profile)); | 419 new SearchProviderInstallStateMessageFilter(id, profile)); |
420 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 420 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
421 #if defined(OS_MACOSX) | 421 #if defined(OS_MACOSX) |
422 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); | 422 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); |
423 #endif | 423 #endif |
424 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( | 424 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( |
425 id, profile, profile->GetRequestContextForRenderProcess(id))); | 425 id, profile, profile->GetRequestContextForRenderProcess(id))); |
426 host->GetChannel()->AddFilter( | 426 host->GetChannel()->AddFilter( |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 #if defined(USE_NSS) | 1630 #if defined(USE_NSS) |
1631 crypto::CryptoModuleBlockingPasswordDelegate* | 1631 crypto::CryptoModuleBlockingPasswordDelegate* |
1632 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1632 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
1633 const GURL& url) { | 1633 const GURL& url) { |
1634 return browser::NewCryptoModuleBlockingDialogDelegate( | 1634 return browser::NewCryptoModuleBlockingDialogDelegate( |
1635 browser::kCryptoModulePasswordKeygen, url.host()); | 1635 browser::kCryptoModulePasswordKeygen, url.host()); |
1636 } | 1636 } |
1637 #endif | 1637 #endif |
1638 | 1638 |
1639 } // namespace chrome | 1639 } // namespace chrome |
OLD | NEW |