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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 profile->GetNetworkPredictor()); | 588 profile->GetNetworkPredictor()); |
589 new extensions::MessageHandler(render_view_host); | 589 new extensions::MessageHandler(render_view_host); |
590 } | 590 } |
591 | 591 |
592 void ChromeContentBrowserClient::RenderProcessHostCreated( | 592 void ChromeContentBrowserClient::RenderProcessHostCreated( |
593 content::RenderProcessHost* host) { | 593 content::RenderProcessHost* host) { |
594 int id = host->GetID(); | 594 int id = host->GetID(); |
595 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 595 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
596 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( | 596 host->GetChannel()->AddFilter(new ChromeRenderMessageFilter( |
597 id, profile, profile->GetRequestContextForRenderProcess(id))); | 597 id, profile, profile->GetRequestContextForRenderProcess(id))); |
| 598 #if defined(ENABLE_PLUGINS) |
598 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); | 599 host->GetChannel()->AddFilter(new PluginInfoMessageFilter(id, profile)); |
| 600 #endif |
599 #if defined(ENABLE_PRINTING) | 601 #if defined(ENABLE_PRINTING) |
600 host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile)); | 602 host->GetChannel()->AddFilter(new PrintingMessageFilter(id, profile)); |
601 #endif | 603 #endif |
602 host->GetChannel()->AddFilter( | 604 host->GetChannel()->AddFilter( |
603 new SearchProviderInstallStateMessageFilter(id, profile)); | 605 new SearchProviderInstallStateMessageFilter(id, profile)); |
604 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); | 606 host->GetChannel()->AddFilter(new SpellCheckMessageFilter(id)); |
605 #if defined(OS_MACOSX) | 607 #if defined(OS_MACOSX) |
606 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); | 608 host->GetChannel()->AddFilter(new SpellCheckMessageFilterMac()); |
607 #endif | 609 #endif |
608 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( | 610 host->GetChannel()->AddFilter(new ChromeBenchmarkingMessageFilter( |
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1928 io_thread_application_locale_ = locale; | 1930 io_thread_application_locale_ = locale; |
1929 } | 1931 } |
1930 | 1932 |
1931 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( | 1933 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( |
1932 const std::string& locale) { | 1934 const std::string& locale) { |
1933 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 1935 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
1934 io_thread_application_locale_ = locale; | 1936 io_thread_application_locale_ = locale; |
1935 } | 1937 } |
1936 | 1938 |
1937 } // namespace chrome | 1939 } // namespace chrome |
OLD | NEW |