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

Unified Diff: remoting/protocol/connection_to_host.h

Issue 394883008: Add basic perf tests for chromoting protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/protocol/channel_multiplexer.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_host.h
diff --git a/remoting/protocol/connection_to_host.h b/remoting/protocol/connection_to_host.h
index e766741146b1c8da92da2b41f95ed23fa30a31d2..33c528c918330c055e8cc27883def7abde87ec4b 100644
--- a/remoting/protocol/connection_to_host.h
+++ b/remoting/protocol/connection_to_host.h
@@ -20,6 +20,7 @@
#include "remoting/protocol/message_reader.h"
#include "remoting/protocol/monitored_video_stub.h"
#include "remoting/protocol/session.h"
+#include "remoting/protocol/session_config.h"
#include "remoting/protocol/session_manager.h"
#include "remoting/signaling/signal_strategy.h"
@@ -83,6 +84,10 @@ class ConnectionToHost : public SignalStrategy::Listener,
ConnectionToHost();
virtual ~ConnectionToHost();
+ // Allows to set a custom protocol configuration (e.g. for tests). Cannot be
+ // called after Connect().
+ void set_candidate_config(scoped_ptr<CandidateSessionConfig> config);
+
// Set the stubs which will handle messages from the host.
// The caller must ensure that stubs out-live the connection.
// Unless otherwise specified, all stubs must be set before Connect()
@@ -156,6 +161,8 @@ class ConnectionToHost : public SignalStrategy::Listener,
HostEventCallback* event_callback_;
+ scoped_ptr<CandidateSessionConfig> candidate_config_;
+
// Stub for incoming messages.
ClientStub* client_stub_;
ClipboardStub* clipboard_stub_;
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/connection_to_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698