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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review. Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/media/audio_debug_recordings_handler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 #include "content/public/common/service_manager_connection.h" 178 #include "content/public/common/service_manager_connection.h"
179 #include "content/public/common/service_names.mojom.h" 179 #include "content/public/common/service_names.mojom.h"
180 #include "content/public/common/url_utils.h" 180 #include "content/public/common/url_utils.h"
181 #include "content/public/common/web_preferences.h" 181 #include "content/public/common/web_preferences.h"
182 #include "device/bluetooth/adapter_factory.h" 182 #include "device/bluetooth/adapter_factory.h"
183 #include "device/bluetooth/public/interfaces/adapter.mojom.h" 183 #include "device/bluetooth/public/interfaces/adapter.mojom.h"
184 #include "device/usb/public/interfaces/chooser_service.mojom.h" 184 #include "device/usb/public/interfaces/chooser_service.mojom.h"
185 #include "device/usb/public/interfaces/device_manager.mojom.h" 185 #include "device/usb/public/interfaces/device_manager.mojom.h"
186 #include "extensions/features/features.h" 186 #include "extensions/features/features.h"
187 #include "gpu/config/gpu_switches.h" 187 #include "gpu/config/gpu_switches.h"
188 #include "media/audio/audio_manager.h"
188 #include "media/media_features.h" 189 #include "media/media_features.h"
189 #include "net/base/mime_util.h" 190 #include "net/base/mime_util.h"
190 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 191 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
191 #include "net/cookies/canonical_cookie.h" 192 #include "net/cookies/canonical_cookie.h"
192 #include "net/cookies/cookie_options.h" 193 #include "net/cookies/cookie_options.h"
193 #include "net/ssl/ssl_cert_request_info.h" 194 #include "net/ssl/ssl_cert_request_info.h"
194 #include "ppapi/features/features.h" 195 #include "ppapi/features/features.h"
195 #include "ppapi/host/ppapi_host.h" 196 #include "ppapi/host/ppapi_host.h"
196 #include "printing/features/features.h" 197 #include "printing/features/features.h"
197 #include "services/image_decoder/public/interfaces/constants.mojom.h" 198 #include "services/image_decoder/public/interfaces/constants.mojom.h"
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); 1178 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext()));
1178 #if BUILDFLAG(ENABLE_WEBRTC) 1179 #if BUILDFLAG(ENABLE_WEBRTC)
1179 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = 1180 WebRtcLoggingHandlerHost* webrtc_logging_handler_host =
1180 new WebRtcLoggingHandlerHost(id, profile, 1181 new WebRtcLoggingHandlerHost(id, profile,
1181 g_browser_process->webrtc_log_uploader()); 1182 g_browser_process->webrtc_log_uploader());
1182 host->AddFilter(webrtc_logging_handler_host); 1183 host->AddFilter(webrtc_logging_handler_host);
1183 host->SetUserData(WebRtcLoggingHandlerHost::kWebRtcLoggingHandlerHostKey, 1184 host->SetUserData(WebRtcLoggingHandlerHost::kWebRtcLoggingHandlerHostKey,
1184 new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 1185 new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
1185 webrtc_logging_handler_host)); 1186 webrtc_logging_handler_host));
1186 1187
1188 // The audio manager outlives the host, so it's safe to hand a raw pointer to
1189 // it to the AudioDebugRecordingsHandler, which is owned by the host.
1187 AudioDebugRecordingsHandler* audio_debug_recordings_handler = 1190 AudioDebugRecordingsHandler* audio_debug_recordings_handler =
1188 new AudioDebugRecordingsHandler(profile); 1191 new AudioDebugRecordingsHandler(profile, media::AudioManager::Get());
1189 host->SetUserData( 1192 host->SetUserData(
1190 AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey, 1193 AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey,
1191 new base::UserDataAdapter<AudioDebugRecordingsHandler>( 1194 new base::UserDataAdapter<AudioDebugRecordingsHandler>(
1192 audio_debug_recordings_handler)); 1195 audio_debug_recordings_handler));
1193 1196
1194 #endif 1197 #endif
1195 #if !defined(DISABLE_NACL) 1198 #if !defined(DISABLE_NACL)
1196 net::URLRequestContextGetter* context = 1199 net::URLRequestContextGetter* context =
1197 host->GetStoragePartition()->GetURLRequestContext(); 1200 host->GetStoragePartition()->GetURLRequestContext();
1198 host->AddFilter(new nacl::NaClHostMessageFilter( 1201 host->AddFilter(new nacl::NaClHostMessageFilter(
(...skipping 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after
3565 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3568 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3566 return variations::GetVariationParamValue( 3569 return variations::GetVariationParamValue(
3567 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3570 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3568 } 3571 }
3569 3572
3570 // static 3573 // static
3571 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3574 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3572 const storage::QuotaSettings* settings) { 3575 const storage::QuotaSettings* settings) {
3573 g_default_quota_settings = settings; 3576 g_default_quota_settings = settings;
3574 } 3577 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/audio_debug_recordings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698