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

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

Issue 4229003: Add VideoReader and VideoWriter interfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 10 years, 1 month 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
« no previous file with comments | « remoting/proto/video.proto ('k') | remoting/protocol/message_decoder.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_CHROMOTOCOL_CONFIG_H_ 5 #ifndef REMOTING_PROTOCOL_CHROMOTOCOL_CONFIG_H_
6 #define REMOTING_PROTOCOL_CHROMOTOCOL_CONFIG_H_ 6 #define REMOTING_PROTOCOL_CHROMOTOCOL_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 14
15 extern const int kDefaultStreamVersion; 15 extern const int kDefaultStreamVersion;
16 16
17 // Struct for configuration parameters of a single channel. 17 // Struct for configuration parameters of a single channel.
18 struct ChannelConfig { 18 struct ChannelConfig {
19 enum TransportType { 19 enum TransportType {
20 TRANSPORT_STREAM, 20 TRANSPORT_STREAM,
21 TRANSPORT_DATAGRAM, 21 TRANSPORT_DATAGRAM,
22 TRANSPORT_SRTP, 22 TRANSPORT_SRTP,
23 TRANSPORT_RTP_DTLS, 23 TRANSPORT_RTP_DTLS,
24 }; 24 };
25 25
26 enum Codec { 26 enum Codec {
27 CODEC_UNDEFINED, // Used for event and control channels. 27 CODEC_UNDEFINED, // Used for event and control channels.
28 CODEC_VERBATIM,
29 CODEC_ZIP,
28 CODEC_VP8, 30 CODEC_VP8,
29 CODEC_ZIP,
30 }; 31 };
31 32
32 ChannelConfig(); 33 ChannelConfig();
33 ChannelConfig(TransportType transport, int version, Codec codec); 34 ChannelConfig(TransportType transport, int version, Codec codec);
34 35
35 // operator== is overloaded so that std::find() works with 36 // operator== is overloaded so that std::find() works with
36 // std::vector<ChannelConfig>. 37 // std::vector<ChannelConfig>.
37 bool operator==(const ChannelConfig& b) const; 38 bool operator==(const ChannelConfig& b) const;
38 39
39 void Reset(); 40 void Reset();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 std::vector<ChannelConfig> control_configs_; 153 std::vector<ChannelConfig> control_configs_;
153 std::vector<ChannelConfig> event_configs_; 154 std::vector<ChannelConfig> event_configs_;
154 std::vector<ChannelConfig> video_configs_; 155 std::vector<ChannelConfig> video_configs_;
155 156
156 ScreenResolution initial_resolution_; 157 ScreenResolution initial_resolution_;
157 }; 158 };
158 159
159 } // namespace remoting 160 } // namespace remoting
160 161
161 #endif // REMOTING_PROTOCOL_CHROMOTOCOL_CONFIG_H_ 162 #endif // REMOTING_PROTOCOL_CHROMOTOCOL_CONFIG_H_
OLDNEW
« no previous file with comments | « remoting/proto/video.proto ('k') | remoting/protocol/message_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698