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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review (pfeldman@/dalecurtis@) and a fix. Rebase. Created 3 years, 10 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 <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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext())); 1097 host->AddFilter(new TtsMessageFilter(host->GetBrowserContext()));
1097 #if BUILDFLAG(ENABLE_WEBRTC) 1098 #if BUILDFLAG(ENABLE_WEBRTC)
1098 WebRtcLoggingHandlerHost* webrtc_logging_handler_host = 1099 WebRtcLoggingHandlerHost* webrtc_logging_handler_host =
1099 new WebRtcLoggingHandlerHost(id, profile, 1100 new WebRtcLoggingHandlerHost(id, profile,
1100 g_browser_process->webrtc_log_uploader()); 1101 g_browser_process->webrtc_log_uploader());
1101 host->AddFilter(webrtc_logging_handler_host); 1102 host->AddFilter(webrtc_logging_handler_host);
1102 host->SetUserData(WebRtcLoggingHandlerHost::kWebRtcLoggingHandlerHostKey, 1103 host->SetUserData(WebRtcLoggingHandlerHost::kWebRtcLoggingHandlerHostKey,
1103 new base::UserDataAdapter<WebRtcLoggingHandlerHost>( 1104 new base::UserDataAdapter<WebRtcLoggingHandlerHost>(
1104 webrtc_logging_handler_host)); 1105 webrtc_logging_handler_host));
1105 1106
1107 // The audio manager outlives the host, so it's safe to hand a raw pointer to
1108 // it to the AudioDebugRecordingsHandler, which is owned by the host.
1106 AudioDebugRecordingsHandler* audio_debug_recordings_handler = 1109 AudioDebugRecordingsHandler* audio_debug_recordings_handler =
1107 new AudioDebugRecordingsHandler(profile); 1110 new AudioDebugRecordingsHandler(profile, media::AudioManager::Get());
1108 host->SetUserData( 1111 host->SetUserData(
1109 AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey, 1112 AudioDebugRecordingsHandler::kAudioDebugRecordingsHandlerKey,
1110 new base::UserDataAdapter<AudioDebugRecordingsHandler>( 1113 new base::UserDataAdapter<AudioDebugRecordingsHandler>(
1111 audio_debug_recordings_handler)); 1114 audio_debug_recordings_handler));
1112 1115
1113 #endif 1116 #endif
1114 #if !defined(DISABLE_NACL) 1117 #if !defined(DISABLE_NACL)
1115 net::URLRequestContextGetter* context = 1118 net::URLRequestContextGetter* context =
1116 host->GetStoragePartition()->GetURLRequestContext(); 1119 host->GetStoragePartition()->GetURLRequestContext();
1117 host->AddFilter(new nacl::NaClHostMessageFilter( 1120 host->AddFilter(new nacl::NaClHostMessageFilter(
(...skipping 2316 matching lines...) Expand 10 before | Expand all | Expand 10 after
3434 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 3437 RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
3435 return variations::GetVariationParamValue( 3438 return variations::GetVariationParamValue(
3436 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; 3439 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true";
3437 } 3440 }
3438 3441
3439 // static 3442 // static
3440 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( 3443 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting(
3441 const storage::QuotaSettings* settings) { 3444 const storage::QuotaSettings* settings) {
3442 g_default_quota_settings = settings; 3445 g_default_quota_settings = settings;
3443 } 3446 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/audio_debug_recordings_handler.h » ('j') | media/audio/audio_manager_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698