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

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

Issue 5298001: Use VP8 over PseudoTCP by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed EventExecutor class. 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/protocol/jingle_session_manager.cc ('k') | remoting/protocol/session_config.cc » ('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_SESSION_CONFIG_H_ 5 #ifndef REMOTING_PROTOCOL_SESSION_CONFIG_H_
6 #define REMOTING_PROTOCOL_SESSION_CONFIG_H_ 6 #define REMOTING_PROTOCOL_SESSION_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // session-initiate message. It is different from the regular Config 94 // session-initiate message. It is different from the regular Config
95 // because it allows one to specify multiple configurations for each channel. 95 // because it allows one to specify multiple configurations for each channel.
96 class CandidateSessionConfig { 96 class CandidateSessionConfig {
97 public: 97 public:
98 ~CandidateSessionConfig(); 98 ~CandidateSessionConfig();
99 99
100 const std::vector<ChannelConfig>& control_configs() const { 100 const std::vector<ChannelConfig>& control_configs() const {
101 return control_configs_; 101 return control_configs_;
102 } 102 }
103 103
104 std::vector<ChannelConfig>* mutable_control_configs() {
105 return &control_configs_;
106 }
107
104 const std::vector<ChannelConfig>& event_configs() const { 108 const std::vector<ChannelConfig>& event_configs() const {
105 return event_configs_; 109 return event_configs_;
106 } 110 }
107 111
112 std::vector<ChannelConfig>* mutable_event_configs() {
113 return &event_configs_;
114 }
115
108 const std::vector<ChannelConfig>& video_configs() const { 116 const std::vector<ChannelConfig>& video_configs() const {
109 return video_configs_; 117 return video_configs_;
110 } 118 }
111 119
120 std::vector<ChannelConfig>* mutable_video_configs() {
121 return &video_configs_;
122 }
123
112 const ScreenResolution& initial_resolution() const { 124 const ScreenResolution& initial_resolution() const {
113 return initial_resolution_; 125 return initial_resolution_;
114 } 126 }
115 127
116 void AddControlConfig(const ChannelConfig& control_config); 128 ScreenResolution* mutable_initial_resolution() {
117 void AddEventConfig(const ChannelConfig& event_config); 129 return &initial_resolution_;
118 void AddVideoConfig(const ChannelConfig& video_config); 130 }
119 void SetInitialResolution(const ScreenResolution& initial_resolution);
120 131
121 // Selects session configuration that is supported by both participants. 132 // Selects session configuration that is supported by both participants.
122 // NULL is returned if such configuration doesn't exist. When selecting 133 // NULL is returned if such configuration doesn't exist. When selecting
123 // channel configuration priority is given to the configs listed first 134 // channel configuration priority is given to the configs listed first
124 // in |client_config|. 135 // in |client_config|.
125 SessionConfig* Select(const CandidateSessionConfig* client_config, 136 SessionConfig* Select(const CandidateSessionConfig* client_config,
126 bool force_host_resolution); 137 bool force_host_resolution);
127 138
128 // Returns true if |config| is supported. 139 // Returns true if |config| is supported.
129 bool IsSupported(const SessionConfig* config) const; 140 bool IsSupported(const SessionConfig* config) const;
(...skipping 26 matching lines...) Expand all
156 std::vector<ChannelConfig> event_configs_; 167 std::vector<ChannelConfig> event_configs_;
157 std::vector<ChannelConfig> video_configs_; 168 std::vector<ChannelConfig> video_configs_;
158 169
159 ScreenResolution initial_resolution_; 170 ScreenResolution initial_resolution_;
160 }; 171 };
161 172
162 } // namespace protocol 173 } // namespace protocol
163 } // namespace remoting 174 } // namespace remoting
164 175
165 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ 176 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_
OLDNEW
« no previous file with comments | « remoting/protocol/jingle_session_manager.cc ('k') | remoting/protocol/session_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698