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

Side by Side Diff: remoting/protocol/webrtc_audio_module.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "remoting/protocol/webrtc_audio_module.h" 5 #include "remoting/protocol/webrtc_audio_module.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/single_thread_task_runner.h"
9 #include "base/stl_util.h" 10 #include "base/stl_util.h"
10 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
11 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
12 13
13 namespace remoting { 14 namespace remoting {
14 namespace protocol { 15 namespace protocol {
15 16
16 namespace { 17 namespace {
17 18
18 const int kSamplingRate = 48000; 19 const int kSamplingRate = 48000;
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 int64_t ntp_time_ms = -1; 528 int64_t ntp_time_ms = -1;
528 char data[kBytesPerSample * kChannels * kSamplesPerFrame]; 529 char data[kBytesPerSample * kChannels * kSamplesPerFrame];
529 audio_transport_->PullRenderData(kBytesPerSample * 8, kSamplingRate, 530 audio_transport_->PullRenderData(kBytesPerSample * 8, kSamplingRate,
530 kChannels, kSamplesPerFrame, data, 531 kChannels, kSamplesPerFrame, data,
531 &elapsed_time_ms, &ntp_time_ms); 532 &elapsed_time_ms, &ntp_time_ms);
532 } 533 }
533 } 534 }
534 535
535 } // namespace protocol 536 } // namespace protocol
536 } // namespace remoting 537 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/pseudotcp_adapter_unittest.cc ('k') | remoting/protocol/webrtc_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698