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

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

Issue 1277093006: Enable QUIC support in chromoting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@quic_adapters
Patch Set: Created 5 years, 4 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/channel_dispatcher_base.cc ('k') | remoting/protocol/content_description.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_CONTENT_DESCRIPTION_H_ 5 #ifndef REMOTING_PROTOCOL_CONTENT_DESCRIPTION_H_
6 #define REMOTING_PROTOCOL_CONTENT_DESCRIPTION_H_ 6 #define REMOTING_PROTOCOL_CONTENT_DESCRIPTION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "remoting/protocol/session_config.h" 12 #include "remoting/protocol/session_config.h"
13 13
14 namespace buzz { 14 namespace buzz {
15 class XmlElement; 15 class XmlElement;
16 } // namespace buzz 16 } // namespace buzz
17 17
18 namespace remoting { 18 namespace remoting {
19 namespace protocol { 19 namespace protocol {
20 20
21 // ContentDescription used for chromoting sessions. It contains the information 21 // ContentDescription used for chromoting sessions. It contains the information
22 // from the content description stanza in the session intialization handshake. 22 // from the content description stanza in the session initialization handshake.
23 // 23 //
24 // This class also provides a type abstraction so that the Chromotocol Session 24 // This class also provides a type abstraction so that the Chromotocol Session
25 // interface does not need to depend on libjingle. 25 // interface does not need to depend on libjingle.
26 class ContentDescription { 26 class ContentDescription {
27 public: 27 public:
28 static const char kChromotingContentName[]; 28 static const char kChromotingContentName[];
29 29
30 ContentDescription(scoped_ptr<CandidateSessionConfig> config, 30 ContentDescription(scoped_ptr<CandidateSessionConfig> config,
31 scoped_ptr<buzz::XmlElement> authenticator_message); 31 scoped_ptr<buzz::XmlElement> authenticator_message,
32 const std::string& quic_config_message);
32 ~ContentDescription(); 33 ~ContentDescription();
33 34
34 const CandidateSessionConfig* config() const { 35 const CandidateSessionConfig* config() const {
35 return candidate_config_.get(); 36 return candidate_config_.get();
36 } 37 }
37 38
38 const buzz::XmlElement* authenticator_message() const { 39 const buzz::XmlElement* authenticator_message() const {
39 return authenticator_message_.get(); 40 return authenticator_message_.get();
40 } 41 }
41 42
43 const std::string& quic_config_message() const {
44 return quic_config_message_;
45 }
46
42 buzz::XmlElement* ToXml() const; 47 buzz::XmlElement* ToXml() const;
43 48
44 static scoped_ptr<ContentDescription> ParseXml( 49 static scoped_ptr<ContentDescription> ParseXml(
45 const buzz::XmlElement* element); 50 const buzz::XmlElement* element);
46 51
47 private: 52 private:
48 scoped_ptr<const CandidateSessionConfig> candidate_config_; 53 scoped_ptr<const CandidateSessionConfig> candidate_config_;
49 scoped_ptr<const buzz::XmlElement> authenticator_message_; 54 scoped_ptr<const buzz::XmlElement> authenticator_message_;
55 std::string quic_config_message_;
50 56
51 static bool ParseChannelConfigs(const buzz::XmlElement* const element, 57 static bool ParseChannelConfigs(const buzz::XmlElement* const element,
52 const char tag_name[], 58 const char tag_name[],
53 bool codec_required, 59 bool codec_required,
54 bool optional, 60 bool optional,
55 std::list<ChannelConfig>* const configs); 61 std::list<ChannelConfig>* const configs);
56 }; 62 };
57 63
58 } // namespace protocol 64 } // namespace protocol
59 } // namespace remoting 65 } // namespace remoting
60 66
61 #endif // REMOTING_PROTOCOL_CONTENT_DESCRIPTION_H_ 67 #endif // REMOTING_PROTOCOL_CONTENT_DESCRIPTION_H_
OLDNEW
« no previous file with comments | « remoting/protocol/channel_dispatcher_base.cc ('k') | remoting/protocol/content_description.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698