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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 795 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
796 net::URLRequestContextGetter* context = | 796 net::URLRequestContextGetter* context = |
797 profile->GetRequestContextForRenderProcess(id); | 797 profile->GetRequestContextForRenderProcess(id); |
798 | 798 |
799 host->AddFilter(new ChromeRenderMessageFilter(id, profile)); | 799 host->AddFilter(new ChromeRenderMessageFilter(id, profile)); |
800 #if defined(ENABLE_PLUGINS) | 800 #if defined(ENABLE_PLUGINS) |
801 host->AddFilter(new PluginInfoMessageFilter(id, profile)); | 801 host->AddFilter(new PluginInfoMessageFilter(id, profile)); |
802 #endif | 802 #endif |
803 host->AddFilter(new cast::CastTransportHostFilter); | 803 host->AddFilter(new cast::CastTransportHostFilter); |
804 #if defined(ENABLE_PRINTING) | 804 #if defined(ENABLE_PRINTING) |
805 host->AddFilter(new PrintingMessageFilter(id, profile)); | 805 host->AddFilter(new printing::PrintingMessageFilter(id, profile)); |
806 #endif | 806 #endif |
807 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); | 807 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); |
808 #if defined(ENABLE_SPELLCHECK) | 808 #if defined(ENABLE_SPELLCHECK) |
809 host->AddFilter(new SpellCheckMessageFilter(id)); | 809 host->AddFilter(new SpellCheckMessageFilter(id)); |
810 #endif | 810 #endif |
811 #if defined(OS_MACOSX) | 811 #if defined(OS_MACOSX) |
812 host->AddFilter(new SpellCheckMessageFilterMac(id)); | 812 host->AddFilter(new SpellCheckMessageFilterMac(id)); |
813 #endif | 813 #endif |
814 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); | 814 host->AddFilter(new ChromeNetBenchmarkingMessageFilter(profile, context)); |
815 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); | 815 host->AddFilter(new prerender::PrerenderMessageFilter(id, profile)); |
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2614 switches::kDisableWebRtcEncryption, | 2614 switches::kDisableWebRtcEncryption, |
2615 }; | 2615 }; |
2616 to_command_line->CopySwitchesFrom(from_command_line, | 2616 to_command_line->CopySwitchesFrom(from_command_line, |
2617 kWebRtcDevSwitchNames, | 2617 kWebRtcDevSwitchNames, |
2618 arraysize(kWebRtcDevSwitchNames)); | 2618 arraysize(kWebRtcDevSwitchNames)); |
2619 } | 2619 } |
2620 } | 2620 } |
2621 #endif // defined(ENABLE_WEBRTC) | 2621 #endif // defined(ENABLE_WEBRTC) |
2622 | 2622 |
2623 } // namespace chrome | 2623 } // namespace chrome |
OLD | NEW |