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 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/extensions/extension_web_ui.h" | 39 #include "chrome/browser/extensions/extension_web_ui.h" |
40 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 40 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
41 #include "chrome/browser/extensions/suggest_permission_util.h" | 41 #include "chrome/browser/extensions/suggest_permission_util.h" |
42 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 42 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
43 #include "chrome/browser/google/google_util.h" | 43 #include "chrome/browser/google/google_util.h" |
44 #include "chrome/browser/guestview/adview/adview_guest.h" | 44 #include "chrome/browser/guestview/adview/adview_guest.h" |
45 #include "chrome/browser/guestview/guestview.h" | 45 #include "chrome/browser/guestview/guestview.h" |
46 #include "chrome/browser/guestview/guestview_constants.h" | 46 #include "chrome/browser/guestview/guestview_constants.h" |
47 #include "chrome/browser/guestview/webview/webview_guest.h" | 47 #include "chrome/browser/guestview/webview/webview_guest.h" |
48 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" | 48 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" |
| 49 #include "chrome/browser/media/cast_transport_host_filter.h" |
49 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 50 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
50 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 51 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
51 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 52 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
52 #include "chrome/browser/net/chrome_net_log.h" | 53 #include "chrome/browser/net/chrome_net_log.h" |
53 #include "chrome/browser/notifications/desktop_notification_service.h" | 54 #include "chrome/browser/notifications/desktop_notification_service.h" |
54 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 55 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
55 #include "chrome/browser/platform_util.h" | 56 #include "chrome/browser/platform_util.h" |
56 #include "chrome/browser/plugins/plugin_info_message_filter.h" | 57 #include "chrome/browser/plugins/plugin_info_message_filter.h" |
57 #include "chrome/browser/prerender/prerender_final_status.h" | 58 #include "chrome/browser/prerender/prerender_final_status.h" |
58 #include "chrome/browser/prerender/prerender_manager.h" | 59 #include "chrome/browser/prerender/prerender_manager.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 int id = host->GetID(); | 902 int id = host->GetID(); |
902 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 903 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
903 net::URLRequestContextGetter* context = | 904 net::URLRequestContextGetter* context = |
904 profile->GetRequestContextForRenderProcess(id); | 905 profile->GetRequestContextForRenderProcess(id); |
905 | 906 |
906 host->AddFilter(new ChromeRenderMessageFilter(id, profile, context)); | 907 host->AddFilter(new ChromeRenderMessageFilter(id, profile, context)); |
907 host->AddFilter(new extensions::ExtensionMessageFilter(id, profile)); | 908 host->AddFilter(new extensions::ExtensionMessageFilter(id, profile)); |
908 #if defined(ENABLE_PLUGINS) | 909 #if defined(ENABLE_PLUGINS) |
909 host->AddFilter(new PluginInfoMessageFilter(id, profile)); | 910 host->AddFilter(new PluginInfoMessageFilter(id, profile)); |
910 #endif | 911 #endif |
| 912 host->AddFilter(new cast::CastTransportHostFilter); |
911 #if defined(ENABLE_PRINTING) | 913 #if defined(ENABLE_PRINTING) |
912 host->AddFilter(new PrintingMessageFilter(id, profile)); | 914 host->AddFilter(new PrintingMessageFilter(id, profile)); |
913 #endif | 915 #endif |
914 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); | 916 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); |
915 #if defined(ENABLE_SPELLCHECK) | 917 #if defined(ENABLE_SPELLCHECK) |
916 host->AddFilter(new SpellCheckMessageFilter(id)); | 918 host->AddFilter(new SpellCheckMessageFilter(id)); |
917 #endif | 919 #endif |
918 #if defined(OS_MACOSX) | 920 #if defined(OS_MACOSX) |
919 host->AddFilter(new SpellCheckMessageFilterMac(id)); | 921 host->AddFilter(new SpellCheckMessageFilterMac(id)); |
920 #endif | 922 #endif |
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2702 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on | 2704 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on |
2703 // Chromium builds as well. | 2705 // Chromium builds as well. |
2704 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2706 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
2705 #else | 2707 #else |
2706 return false; | 2708 return false; |
2707 #endif | 2709 #endif |
2708 } | 2710 } |
2709 | 2711 |
2710 | 2712 |
2711 } // namespace chrome | 2713 } // namespace chrome |
OLD | NEW |