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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 671793004: Clean up the media stream audio track code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 6 years, 1 month 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 | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/content_renderer.gypi » ('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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 cc::switches::kSlowDownRasterScaleFactor, 1221 cc::switches::kSlowDownRasterScaleFactor,
1222 cc::switches::kStrictLayerPropertyChangeChecking, 1222 cc::switches::kStrictLayerPropertyChangeChecking,
1223 cc::switches::kTopControlsHeight, 1223 cc::switches::kTopControlsHeight,
1224 cc::switches::kTopControlsHideThreshold, 1224 cc::switches::kTopControlsHideThreshold,
1225 cc::switches::kTopControlsShowThreshold, 1225 cc::switches::kTopControlsShowThreshold,
1226 #if defined(ENABLE_PLUGINS) 1226 #if defined(ENABLE_PLUGINS)
1227 switches::kEnablePepperTesting, 1227 switches::kEnablePepperTesting,
1228 switches::kEnablePluginPowerSaver, 1228 switches::kEnablePluginPowerSaver,
1229 #endif 1229 #endif
1230 #if defined(ENABLE_WEBRTC) 1230 #if defined(ENABLE_WEBRTC)
1231 switches::kDisableAudioTrackProcessing,
1232 switches::kDisableWebRtcHWDecoding, 1231 switches::kDisableWebRtcHWDecoding,
1233 switches::kDisableWebRtcHWEncoding, 1232 switches::kDisableWebRtcHWEncoding,
1234 switches::kEnableWebRtcHWVp8Encoding, 1233 switches::kEnableWebRtcHWVp8Encoding,
1235 switches::kEnableWebRtcHWH264Encoding, 1234 switches::kEnableWebRtcHWH264Encoding,
1236 #endif 1235 #endif
1237 switches::kLowEndDeviceMode, 1236 switches::kLowEndDeviceMode,
1238 #if defined(OS_ANDROID) 1237 #if defined(OS_ANDROID)
1239 switches::kDisableGestureRequirementForMediaPlayback, 1238 switches::kDisableGestureRequirementForMediaPlayback,
1240 switches::kDisableWebRTC, 1239 switches::kDisableWebRTC,
1241 switches::kEnableSpeechRecognition, 1240 switches::kEnableSpeechRecognition,
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 2244
2246 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2245 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2247 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2246 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2248 DCHECK_GT(worker_ref_count_, 0); 2247 DCHECK_GT(worker_ref_count_, 0);
2249 --worker_ref_count_; 2248 --worker_ref_count_;
2250 if (worker_ref_count_ == 0) 2249 if (worker_ref_count_ == 0)
2251 Cleanup(); 2250 Cleanup();
2252 } 2251 }
2253 2252
2254 } // namespace content 2253 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/chrome_restart_request.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698