OLD | NEW |
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 REMOTING_PROTOCOL_AUDIO_WRITER_H_ | 5 #ifndef REMOTING_PROTOCOL_AUDIO_WRITER_H_ |
6 #define REMOTING_PROTOCOL_AUDIO_WRITER_H_ | 6 #define REMOTING_PROTOCOL_AUDIO_WRITER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Once AudioWriter is created, the Init() method of ChannelDispatcherBase | 31 // Once AudioWriter is created, the Init() method of ChannelDispatcherBase |
32 // should be used to initialize it for the session. | 32 // should be used to initialize it for the session. |
33 static scoped_ptr<AudioWriter> Create(const SessionConfig& config); | 33 static scoped_ptr<AudioWriter> Create(const SessionConfig& config); |
34 | 34 |
35 ~AudioWriter() override; | 35 ~AudioWriter() override; |
36 | 36 |
37 // AudioStub interface. | 37 // AudioStub interface. |
38 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, | 38 void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, |
39 const base::Closure& done) override; | 39 const base::Closure& done) override; |
40 | 40 |
41 protected: | |
42 void OnInitialized() override; | |
43 | |
44 private: | 41 private: |
45 AudioWriter(); | 42 AudioWriter(); |
46 | 43 |
47 BufferedSocketWriter buffered_writer_; | |
48 | |
49 DISALLOW_COPY_AND_ASSIGN(AudioWriter); | 44 DISALLOW_COPY_AND_ASSIGN(AudioWriter); |
50 }; | 45 }; |
51 | 46 |
52 } // namespace protocol | 47 } // namespace protocol |
53 } // namespace remoting | 48 } // namespace remoting |
54 | 49 |
55 #endif // REMOTING_PROTOCOL_AUDIO_WRITER_H_ | 50 #endif // REMOTING_PROTOCOL_AUDIO_WRITER_H_ |
OLD | NEW |