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