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

Unified Diff: remoting/protocol/fake_session.h

Issue 2615113005: [Chromoting] Use HostExperimentSessionPlugin in host (Closed)
Patch Set: Resolve review comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/host_session_options_unittest.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_session.h
diff --git a/remoting/protocol/fake_session.h b/remoting/protocol/fake_session.h
index 7d31c9c064fc61f63987cd9c47e010a512cf90b6..b0487c86cf4c81787961b6cceb8fd9ff6027c81d 100644
--- a/remoting/protocol/fake_session.h
+++ b/remoting/protocol/fake_session.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "remoting/protocol/fake_stream_socket.h"
+#include "remoting/protocol/jingle_messages.h"
#include "remoting/protocol/session.h"
#include "remoting/protocol/transport.h"
@@ -40,6 +41,11 @@ class FakeSession : public Session {
signaling_delay_ = signaling_delay;
}
+ // Adds an |attachment| to |round|, which will be sent to plugins added by
+ // AddPlugin() function.
+ void SetAttachment(size_t round,
+ std::unique_ptr<buzz::XmlElement> attachment);
+
// Session interface.
void SetEventHandler(EventHandler* event_handler) override;
ErrorCode error() override;
@@ -70,6 +76,8 @@ class FakeSession : public Session {
base::WeakPtr<FakeSession> peer_;
base::TimeDelta signaling_delay_;
+ std::vector<std::unique_ptr<buzz::XmlElement>> attachments_;
+
base::WeakPtrFactory<FakeSession> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(FakeSession);
« no previous file with comments | « remoting/host/host_session_options_unittest.cc ('k') | remoting/protocol/fake_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698