Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_HOST_HOST_EXPERIMENT_SESSION_PLUGIN_H_ | |
| 6 #define REMOTING_HOST_HOST_EXPERIMENT_SESSION_PLUGIN_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "remoting/protocol/session_plugin.h" | |
| 12 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" | |
| 13 | |
| 14 namespace remoting { | |
| 15 | |
| 16 // A SessionPlugin implementation to send host attributes to client, and | |
| 17 // receives experiment settings. This plugin is for host only. | |
|
Sergey Ulanov
2017/01/05 20:45:06
Don't need the last sentence. It's implied by loca
Hzj_jie
2017/01/05 23:37:27
Done.
| |
| 18 class HostExperimentSessionPlugin : public protocol::SessionPlugin { | |
| 19 public: | |
| 20 using SessionPlugin::SessionPlugin; | |
| 21 | |
| 22 std::unique_ptr<buzz::XmlElement> GetNextMessage() override; | |
|
Sergey Ulanov
2017/01/05 20:45:06
// protocol::SessionPlugin implementation.
Hzj_jie
2017/01/05 23:37:27
Done.
| |
| 23 | |
| 24 void OnIncomingMessage(const buzz::XmlElement& attachments) override; | |
| 25 | |
| 26 // The configuration sent from client, may be empty. | |
| 27 const std::string& configuration() const; | |
| 28 | |
| 29 private: | |
| 30 bool attributes_sent_ = false; | |
| 31 std::string configuration_; | |
| 32 }; | |
| 33 | |
| 34 } // namespace remoting | |
| 35 | |
| 36 #endif // REMOTING_HOST_HOST_EXPERIMENT_SESSION_PLUGIN_H_ | |
| OLD | NEW |