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

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

Issue 2586133002: [Chromoting] Implement HostExperimentSessionPlugin (Closed)
Patch Set: Created 3 years, 12 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
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_HOST_EXPERIMENT_SESSION_PLUGIN_H_
6 #define REMOTING_PROTOCOL_HOST_EXPERIMENT_SESSION_PLUGIN_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "remoting/protocol/jingle_messages.h"
12 #include "remoting/protocol/session.h"
13 #include "remoting/protocol/session_plugin.h"
14 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
15
16 namespace remoting {
17 namespace protocol {
18
19 // A SessionPlugin implementation to send host attributes to client, and
20 // receives experiment settings. This plugin is for host only.
21 class HostExperimentSessionPlugin : public SessionPlugin {
22 public:
23 using SessionPlugin::SessionPlugin;
24
25 void OnSending(Session::State state,
26 JingleMessage::ActionType action,
27 std::unique_ptr<buzz::XmlElement>* attachments) override;
28
29 void OnReceiving(
30 Session::State state,
31 JingleMessage::ActionType action,
32 const std::unique_ptr<buzz::XmlElement>& attachments) override;
33
34 // The configuration sent from client, may be empty.
35 const std::string& configuration() const;
36
37 private:
38 std::string configuration_;
39 };
40
41 } // namespace protocol
42 } // namespace remoting
43
44 #endif // REMOTING_PROTOCOL_HOST_EXPERIMENT_SESSION_PLUGIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698