| 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 18 matching lines...) Expand all Loading... |
| 29 #include "chrome/browser/extensions/extension_host.h" | 29 #include "chrome/browser/extensions/extension_host.h" |
| 30 #include "chrome/browser/extensions/extension_info_map.h" | 30 #include "chrome/browser/extensions/extension_info_map.h" |
| 31 #include "chrome/browser/extensions/extension_message_handler.h" | 31 #include "chrome/browser/extensions/extension_message_handler.h" |
| 32 #include "chrome/browser/extensions/extension_process_manager.h" | 32 #include "chrome/browser/extensions/extension_process_manager.h" |
| 33 #include "chrome/browser/extensions/extension_service.h" | 33 #include "chrome/browser/extensions/extension_service.h" |
| 34 #include "chrome/browser/extensions/extension_web_ui.h" | 34 #include "chrome/browser/extensions/extension_web_ui.h" |
| 35 #include "chrome/browser/extensions/extension_webkit_preferences.h" | 35 #include "chrome/browser/extensions/extension_webkit_preferences.h" |
| 36 #include "chrome/browser/geolocation/chrome_access_token_store.h" | 36 #include "chrome/browser/geolocation/chrome_access_token_store.h" |
| 37 #include "chrome/browser/google/google_util.h" | 37 #include "chrome/browser/google/google_util.h" |
| 38 #include "chrome/browser/infobars/infobar_tab_helper.h" | 38 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 39 #include "chrome/browser/media/media_internals.h" |
| 39 #include "chrome/browser/net/chrome_net_log.h" | 40 #include "chrome/browser/net/chrome_net_log.h" |
| 40 #include "chrome/browser/notifications/desktop_notification_service.h" | 41 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 41 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 42 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| 42 #include "chrome/browser/pepper_gtalk_message_filter.h" | 43 #include "chrome/browser/pepper_gtalk_message_filter.h" |
| 43 #include "chrome/browser/platform_util.h" | 44 #include "chrome/browser/platform_util.h" |
| 44 #include "chrome/browser/prefs/pref_service.h" | 45 #include "chrome/browser/prefs/pref_service.h" |
| 45 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 46 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
| 46 #include "chrome/browser/prerender/prerender_manager.h" | 47 #include "chrome/browser/prerender/prerender_manager.h" |
| 47 #include "chrome/browser/prerender/prerender_manager_factory.h" | 48 #include "chrome/browser/prerender/prerender_manager_factory.h" |
| 48 #include "chrome/browser/prerender/prerender_tracker.h" | 49 #include "chrome/browser/prerender/prerender_tracker.h" |
| (...skipping 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 for (content::MediaStreamDeviceMap::const_iterator it = | 1156 for (content::MediaStreamDeviceMap::const_iterator it = |
| 1156 request->devices.begin(); it != request->devices.end(); ++it) { | 1157 request->devices.begin(); it != request->devices.end(); ++it) { |
| 1157 if (!it->second.empty()) | 1158 if (!it->second.empty()) |
| 1158 devices.push_back(*it->second.begin()); | 1159 devices.push_back(*it->second.begin()); |
| 1159 } | 1160 } |
| 1160 | 1161 |
| 1161 callback.Run(devices); | 1162 callback.Run(devices); |
| 1162 #endif // TOOLKIT_VIEWS || OS_LINUX | 1163 #endif // TOOLKIT_VIEWS || OS_LINUX |
| 1163 } | 1164 } |
| 1164 | 1165 |
| 1166 content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() { |
| 1167 return MediaInternals::GetInstance(); |
| 1168 } |
| 1169 |
| 1165 void ChromeContentBrowserClient::RequestDesktopNotificationPermission( | 1170 void ChromeContentBrowserClient::RequestDesktopNotificationPermission( |
| 1166 const GURL& source_origin, | 1171 const GURL& source_origin, |
| 1167 int callback_context, | 1172 int callback_context, |
| 1168 int render_process_id, | 1173 int render_process_id, |
| 1169 int render_view_id) { | 1174 int render_view_id) { |
| 1170 #if defined(ENABLE_NOTIFICATIONS) | 1175 #if defined(ENABLE_NOTIFICATIONS) |
| 1171 RenderViewHost* rvh = RenderViewHost::FromID( | 1176 RenderViewHost* rvh = RenderViewHost::FromID( |
| 1172 render_process_id, render_view_id); | 1177 render_process_id, render_view_id); |
| 1173 if (!rvh) { | 1178 if (!rvh) { |
| 1174 NOTREACHED(); | 1179 NOTREACHED(); |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1632 #if defined(USE_NSS) | 1637 #if defined(USE_NSS) |
| 1633 crypto::CryptoModuleBlockingPasswordDelegate* | 1638 crypto::CryptoModuleBlockingPasswordDelegate* |
| 1634 ChromeContentBrowserClient::GetCryptoPasswordDelegate( | 1639 ChromeContentBrowserClient::GetCryptoPasswordDelegate( |
| 1635 const GURL& url) { | 1640 const GURL& url) { |
| 1636 return browser::NewCryptoModuleBlockingDialogDelegate( | 1641 return browser::NewCryptoModuleBlockingDialogDelegate( |
| 1637 browser::kCryptoModulePasswordKeygen, url.host()); | 1642 browser::kCryptoModulePasswordKeygen, url.host()); |
| 1638 } | 1643 } |
| 1639 #endif | 1644 #endif |
| 1640 | 1645 |
| 1641 } // namespace chrome | 1646 } // namespace chrome |
| OLD | NEW |