Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 11876007: Connecting webrtc-internals WebUI frontend with the backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@main
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 21 matching lines...) Expand all
32 #include "chrome/browser/extensions/extension_info_map.h" 32 #include "chrome/browser/extensions/extension_info_map.h"
33 #include "chrome/browser/extensions/extension_process_manager.h" 33 #include "chrome/browser/extensions/extension_process_manager.h"
34 #include "chrome/browser/extensions/extension_service.h" 34 #include "chrome/browser/extensions/extension_service.h"
35 #include "chrome/browser/extensions/extension_system.h" 35 #include "chrome/browser/extensions/extension_system.h"
36 #include "chrome/browser/extensions/extension_web_ui.h" 36 #include "chrome/browser/extensions/extension_web_ui.h"
37 #include "chrome/browser/extensions/extension_webkit_preferences.h" 37 #include "chrome/browser/extensions/extension_webkit_preferences.h"
38 #include "chrome/browser/extensions/message_handler.h" 38 #include "chrome/browser/extensions/message_handler.h"
39 #include "chrome/browser/extensions/suggest_permission_util.h" 39 #include "chrome/browser/extensions/suggest_permission_util.h"
40 #include "chrome/browser/geolocation/chrome_access_token_store.h" 40 #include "chrome/browser/geolocation/chrome_access_token_store.h"
41 #include "chrome/browser/google/google_util.h" 41 #include "chrome/browser/google/google_util.h"
42 #include "chrome/browser/media/chrome_webrtc_internals.h"
42 #include "chrome/browser/media/media_internals.h" 43 #include "chrome/browser/media/media_internals.h"
43 #include "chrome/browser/nacl_host/nacl_process_host.h" 44 #include "chrome/browser/nacl_host/nacl_process_host.h"
44 #include "chrome/browser/net/chrome_net_log.h" 45 #include "chrome/browser/net/chrome_net_log.h"
45 #include "chrome/browser/notifications/desktop_notification_service.h" 46 #include "chrome/browser/notifications/desktop_notification_service.h"
46 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 47 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
47 #include "chrome/browser/platform_util.h" 48 #include "chrome/browser/platform_util.h"
48 #include "chrome/browser/plugins/plugin_info_message_filter.h" 49 #include "chrome/browser/plugins/plugin_info_message_filter.h"
49 #include "chrome/browser/prefs/pref_service.h" 50 #include "chrome/browser/prefs/pref_service.h"
50 #include "chrome/browser/prefs/scoped_user_pref_update.h" 51 #include "chrome/browser/prefs/scoped_user_pref_update.h"
51 #include "chrome/browser/prerender/prerender_manager.h" 52 #include "chrome/browser/prerender/prerender_manager.h"
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 int render_process_id, 1301 int render_process_id,
1301 int render_view_id) { 1302 int render_view_id) {
1302 chrome::SSLAddCertificate(request, cert_type, cert_data, cert_size, 1303 chrome::SSLAddCertificate(request, cert_type, cert_data, cert_size,
1303 render_process_id, render_view_id); 1304 render_process_id, render_view_id);
1304 } 1305 }
1305 1306
1306 content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() { 1307 content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() {
1307 return MediaInternals::GetInstance(); 1308 return MediaInternals::GetInstance();
1308 } 1309 }
1309 1310
1311 content::WebRTCInternals* ChromeContentBrowserClient::GetWebRTCInternals() {
1312 return ChromeWebRTCInternals::GetInstance();
1313 }
1314
1310 void ChromeContentBrowserClient::RequestDesktopNotificationPermission( 1315 void ChromeContentBrowserClient::RequestDesktopNotificationPermission(
1311 const GURL& source_origin, 1316 const GURL& source_origin,
1312 int callback_context, 1317 int callback_context,
1313 int render_process_id, 1318 int render_process_id,
1314 int render_view_id) { 1319 int render_view_id) {
1315 #if defined(ENABLE_NOTIFICATIONS) 1320 #if defined(ENABLE_NOTIFICATIONS)
1316 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 1321 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
1317 WebContents* contents = 1322 WebContents* contents =
1318 tab_util::GetWebContentsByID(render_process_id, render_view_id); 1323 tab_util::GetWebContentsByID(render_process_id, render_view_id);
1319 if (!contents) { 1324 if (!contents) {
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 io_thread_application_locale_ = locale; 1902 io_thread_application_locale_ = locale;
1898 } 1903 }
1899 1904
1900 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 1905 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
1901 const std::string& locale) { 1906 const std::string& locale) {
1902 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 1907 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1903 io_thread_application_locale_ = locale; 1908 io_thread_application_locale_ = locale;
1904 } 1909 }
1905 1910
1906 } // namespace chrome 1911 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/media/chrome_webrtc_internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698