| 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 29 matching lines...) Expand all Loading... |
| 40 #include "chrome/browser/extensions/extension_web_ui.h" | 40 #include "chrome/browser/extensions/extension_web_ui.h" |
| 41 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 41 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
| 42 #include "chrome/browser/extensions/suggest_permission_util.h" | 42 #include "chrome/browser/extensions/suggest_permission_util.h" |
| 43 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 43 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
| 44 #include "chrome/browser/google/google_util.h" | 44 #include "chrome/browser/google/google_util.h" |
| 45 #include "chrome/browser/guestview/adview/adview_guest.h" | 45 #include "chrome/browser/guestview/adview/adview_guest.h" |
| 46 #include "chrome/browser/guestview/guestview.h" | 46 #include "chrome/browser/guestview/guestview.h" |
| 47 #include "chrome/browser/guestview/guestview_constants.h" | 47 #include "chrome/browser/guestview/guestview_constants.h" |
| 48 #include "chrome/browser/guestview/webview/webview_guest.h" | 48 #include "chrome/browser/guestview/webview/webview_guest.h" |
| 49 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" | 49 #include "chrome/browser/local_discovery/storage/privet_filesystem_backend.h" |
| 50 #include "chrome/browser/media/cast_net_host_filter.h" |
| 50 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 51 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
| 51 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" | 52 #include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h" |
| 52 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" | 53 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" |
| 53 #include "chrome/browser/net/chrome_net_log.h" | 54 #include "chrome/browser/net/chrome_net_log.h" |
| 54 #include "chrome/browser/notifications/desktop_notification_service.h" | 55 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 55 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 56 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 56 #include "chrome/browser/platform_util.h" | 57 #include "chrome/browser/platform_util.h" |
| 57 #include "chrome/browser/plugins/plugin_info_message_filter.h" | 58 #include "chrome/browser/plugins/plugin_info_message_filter.h" |
| 58 #include "chrome/browser/prerender/prerender_final_status.h" | 59 #include "chrome/browser/prerender/prerender_final_status.h" |
| 59 #include "chrome/browser/prerender/prerender_manager.h" | 60 #include "chrome/browser/prerender/prerender_manager.h" |
| (...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 content::RenderProcessHost* host) { | 898 content::RenderProcessHost* host) { |
| 898 int id = host->GetID(); | 899 int id = host->GetID(); |
| 899 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); | 900 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); |
| 900 net::URLRequestContextGetter* context = | 901 net::URLRequestContextGetter* context = |
| 901 profile->GetRequestContextForRenderProcess(id); | 902 profile->GetRequestContextForRenderProcess(id); |
| 902 | 903 |
| 903 host->AddFilter(new ChromeRenderMessageFilter(id, profile, context)); | 904 host->AddFilter(new ChromeRenderMessageFilter(id, profile, context)); |
| 904 #if defined(ENABLE_PLUGINS) | 905 #if defined(ENABLE_PLUGINS) |
| 905 host->AddFilter(new PluginInfoMessageFilter(id, profile)); | 906 host->AddFilter(new PluginInfoMessageFilter(id, profile)); |
| 906 #endif | 907 #endif |
| 908 host->AddFilter(new cast::CastNetHostFilter); |
| 907 #if defined(ENABLE_PRINTING) | 909 #if defined(ENABLE_PRINTING) |
| 908 host->AddFilter(new PrintingMessageFilter(id, profile)); | 910 host->AddFilter(new PrintingMessageFilter(id, profile)); |
| 909 #endif | 911 #endif |
| 910 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); | 912 host->AddFilter(new SearchProviderInstallStateMessageFilter(id, profile)); |
| 911 #if defined(ENABLE_SPELLCHECK) | 913 #if defined(ENABLE_SPELLCHECK) |
| 912 host->AddFilter(new SpellCheckMessageFilter(id)); | 914 host->AddFilter(new SpellCheckMessageFilter(id)); |
| 913 #endif | 915 #endif |
| 914 #if defined(OS_MACOSX) | 916 #if defined(OS_MACOSX) |
| 915 host->AddFilter(new SpellCheckMessageFilterMac(id)); | 917 host->AddFilter(new SpellCheckMessageFilterMac(id)); |
| 916 #endif | 918 #endif |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2661 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on | 2663 // releases of Chrome. Permitting "Unknown" allows these APIs to be used on |
| 2662 // Chromium builds as well. | 2664 // Chromium builds as well. |
| 2663 return channel <= chrome::VersionInfo::CHANNEL_DEV; | 2665 return channel <= chrome::VersionInfo::CHANNEL_DEV; |
| 2664 #else | 2666 #else |
| 2665 return false; | 2667 return false; |
| 2666 #endif | 2668 #endif |
| 2667 } | 2669 } |
| 2668 | 2670 |
| 2669 | 2671 |
| 2670 } // namespace chrome | 2672 } // namespace chrome |
| OLD | NEW |