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

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

Issue 1923573006: Implement a dummy host to do capturing and analysis only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review commnets Created 4 years, 7 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/ice_connection_to_client.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) 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_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 <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Extracts final protocol configuration. Must be used for the description 82 // Extracts final protocol configuration. Must be used for the description
83 // received in the session-accept stanza. If the selection is ambiguous 83 // received in the session-accept stanza. If the selection is ambiguous
84 // (e.g. there is more than one configuration for one of the channel) 84 // (e.g. there is more than one configuration for one of the channel)
85 // or undefined (e.g. no configurations for a channel) then nullptr is 85 // or undefined (e.g. no configurations for a channel) then nullptr is
86 // returned. 86 // returned.
87 static std::unique_ptr<SessionConfig> GetFinalConfig( 87 static std::unique_ptr<SessionConfig> GetFinalConfig(
88 const CandidateSessionConfig* candidate_config); 88 const CandidateSessionConfig* candidate_config);
89 89
90 // Returns a suitable session configuration for use in tests. 90 // Returns a suitable session configuration for use in tests.
91 static std::unique_ptr<SessionConfig> ForTest(); 91 static std::unique_ptr<SessionConfig> ForTest();
92 static std::unique_ptr<SessionConfig> ForTestWithAudio();
92 static std::unique_ptr<SessionConfig> ForTestWithVerbatimVideo(); 93 static std::unique_ptr<SessionConfig> ForTestWithVerbatimVideo();
93 static std::unique_ptr<SessionConfig> ForTestWithWebrtc(); 94 static std::unique_ptr<SessionConfig> ForTestWithWebrtc();
94 95
95 Protocol protocol() const { return protocol_; } 96 Protocol protocol() const { return protocol_; }
96 97
97 // All fields below should be ignored when protocol() is set to WEBRTC. 98 // All fields below should be ignored when protocol() is set to WEBRTC.
98 const ChannelConfig& control_config() const; 99 const ChannelConfig& control_config() const;
99 const ChannelConfig& event_config() const; 100 const ChannelConfig& event_config() const;
100 const ChannelConfig& video_config() const; 101 const ChannelConfig& video_config() const;
101 const ChannelConfig& audio_config() const; 102 const ChannelConfig& audio_config() const;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 std::list<ChannelConfig> video_configs_; 202 std::list<ChannelConfig> video_configs_;
202 std::list<ChannelConfig> audio_configs_; 203 std::list<ChannelConfig> audio_configs_;
203 204
204 bool vp9_experiment_enabled_ = false; 205 bool vp9_experiment_enabled_ = false;
205 }; 206 };
206 207
207 } // namespace protocol 208 } // namespace protocol
208 } // namespace remoting 209 } // namespace remoting
209 210
210 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_ 211 #endif // REMOTING_PROTOCOL_SESSION_CONFIG_H_
OLDNEW
« no previous file with comments | « remoting/protocol/ice_connection_to_client.cc ('k') | remoting/protocol/session_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698