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

Side by Side Diff: content/renderer/media/webrtc_audio_device_impl.h

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 | Annotate | Revision Log
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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 } 375 }
376 int output_channels() const { 376 int output_channels() const {
377 return output_audio_parameters_.channels(); 377 return output_audio_parameters_.channels();
378 } 378 }
379 int input_sample_rate() const { 379 int input_sample_rate() const {
380 return input_audio_parameters_.sample_rate(); 380 return input_audio_parameters_.sample_rate();
381 } 381 }
382 int output_sample_rate() const { 382 int output_sample_rate() const {
383 return output_audio_parameters_.sample_rate(); 383 return output_audio_parameters_.sample_rate();
384 } 384 }
385 int input_delay_ms() const { return input_delay_ms_; }
386 int output_delay_ms() const { return output_delay_ms_; }
387 bool initialized() const { return initialized_; } 385 bool initialized() const { return initialized_; }
388 bool playing() const { return playing_; } 386 bool playing() const { return playing_; }
389 bool recording() const { return recording_; } 387 bool recording() const { return recording_; }
390 388
391 private: 389 private:
392 // Make destructor private to ensure that we can only be deleted by Release(). 390 // Make destructor private to ensure that we can only be deleted by Release().
393 virtual ~WebRtcAudioDeviceImpl(); 391 virtual ~WebRtcAudioDeviceImpl();
394 392
395 // Methods called on the main render thread ---------------------------------- 393 // Methods called on the main render thread ----------------------------------
396 // The following methods are tasks posted on the render thread that needs to 394 // The following methods are tasks posted on the render thread that needs to
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 bool agc_is_enabled_; 448 bool agc_is_enabled_;
451 449
452 // Used for histograms of total recording and playout times. 450 // Used for histograms of total recording and playout times.
453 base::Time start_capture_time_; 451 base::Time start_capture_time_;
454 base::Time start_render_time_; 452 base::Time start_render_time_;
455 453
456 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); 454 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl);
457 }; 455 };
458 456
459 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ 457 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698