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

Side by Side Diff: remoting/protocol/audio_writer.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « remoting/protocol/audio_reader.h ('k') | remoting/protocol/buffered_socket_writer.h » ('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 #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 14 matching lines...) Expand all
25 class Session; 25 class Session;
26 class SessionConfig; 26 class SessionConfig;
27 27
28 class AudioWriter : public ChannelDispatcherBase, 28 class AudioWriter : public ChannelDispatcherBase,
29 public AudioStub { 29 public AudioStub {
30 public: 30 public:
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 virtual ~AudioWriter(); 35 ~AudioWriter() override;
36 36
37 // AudioStub interface. 37 // AudioStub interface.
38 virtual 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: 41 protected:
42 virtual void OnInitialized() override; 42 void OnInitialized() override;
43 43
44 private: 44 private:
45 AudioWriter(); 45 AudioWriter();
46 46
47 BufferedSocketWriter buffered_writer_; 47 BufferedSocketWriter buffered_writer_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(AudioWriter); 49 DISALLOW_COPY_AND_ASSIGN(AudioWriter);
50 }; 50 };
51 51
52 } // namespace protocol 52 } // namespace protocol
53 } // namespace remoting 53 } // namespace remoting
54 54
55 #endif // REMOTING_PROTOCOL_AUDIO_WRITER_H_ 55 #endif // REMOTING_PROTOCOL_AUDIO_WRITER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/audio_reader.h ('k') | remoting/protocol/buffered_socket_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698