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

Side by Side Diff: remoting/base/compound_buffer.h

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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/base/breakpad_win_unittest.cc ('k') | remoting/base/plugin_thread_task_runner.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // CompoundBuffer implements a data buffer that is composed of several pieces, 5 // CompoundBuffer implements a data buffer that is composed of several pieces,
6 // each stored in a refcounted IOBuffer. It is needed for encoding/decoding 6 // each stored in a refcounted IOBuffer. It is needed for encoding/decoding
7 // video pipeline to represent data packet and minimize data copying. 7 // video pipeline to represent data packet and minimize data copying.
8 // It is particularly useful for splitting data between multiple RTP packets 8 // It is particularly useful for splitting data between multiple RTP packets
9 // and assembling them into one buffer on the receiving side. 9 // and assembling them into one buffer on the receiving side.
10 // 10 //
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 class CompoundBufferInputStream 101 class CompoundBufferInputStream
102 : public google::protobuf::io::ZeroCopyInputStream { 102 : public google::protobuf::io::ZeroCopyInputStream {
103 public: 103 public:
104 // Caller keeps ownership of |buffer|. |buffer| must be locked. 104 // Caller keeps ownership of |buffer|. |buffer| must be locked.
105 explicit CompoundBufferInputStream(const CompoundBuffer* buffer); 105 explicit CompoundBufferInputStream(const CompoundBuffer* buffer);
106 virtual ~CompoundBufferInputStream(); 106 virtual ~CompoundBufferInputStream();
107 107
108 int position() const { return position_; } 108 int position() const { return position_; }
109 109
110 // google::protobuf::io::ZeroCopyInputStream interface. 110 // google::protobuf::io::ZeroCopyInputStream interface.
111 virtual bool Next(const void** data, int* size) OVERRIDE; 111 virtual bool Next(const void** data, int* size) override;
112 virtual void BackUp(int count) OVERRIDE; 112 virtual void BackUp(int count) override;
113 virtual bool Skip(int count) OVERRIDE; 113 virtual bool Skip(int count) override;
114 virtual int64 ByteCount() const OVERRIDE; 114 virtual int64 ByteCount() const override;
115 115
116 private: 116 private:
117 const CompoundBuffer* buffer_; 117 const CompoundBuffer* buffer_;
118 118
119 size_t current_chunk_; 119 size_t current_chunk_;
120 int current_chunk_position_; 120 int current_chunk_position_;
121 int position_; 121 int position_;
122 int last_returned_size_; 122 int last_returned_size_;
123 }; 123 };
124 124
125 } // namespace remoting 125 } // namespace remoting
126 126
127 #endif // REMOTING_BASE_COMPOUND_BUFFER_H_ 127 #endif // REMOTING_BASE_COMPOUND_BUFFER_H_
OLDNEW
« no previous file with comments | « remoting/base/breakpad_win_unittest.cc ('k') | remoting/base/plugin_thread_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698