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

Unified Diff: remoting/host/chromoting_host.h

Issue 5298001: Use VP8 over PseudoTCP by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated service_process.cc Created 10 years, 1 month 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
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 2294fdd701862c18b814e947c2764fb4e8299769..93939d39a21461be33cc13a1c8dd1cde0d7f9d48 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -26,6 +26,7 @@ class ConnectionToClient;
class HostStub;
class InputStub;
class SessionConfig;
+class CandidateSessionConfig;
} // namespace protocol
class Capturer;
@@ -68,6 +69,12 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
Capturer* capturer);
virtual ~ChromotingHost();
+ static ChromotingHost* Create(ChromotingHostContext* context,
+ MutableHostConfig* config);
+ static ChromotingHost* Create(ChromotingHostContext* context,
+ MutableHostConfig* config,
+ Capturer* capturer);
+
// Asynchronously start the host process.
//
// After this is invoked, the host process will connect to the talk
@@ -103,6 +110,10 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
protocol::Session* session,
protocol::SessionManager::IncomingSessionResponse* response);
+ // Sets desired configuration for the protocol. Ownership of the
+ // |config| is transfered to the object. Must be called before Start().
+ void set_protocol_config(protocol::CandidateSessionConfig* config);
+
private:
enum State {
kInitial,
@@ -110,10 +121,6 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
kStopped,
};
- // This method connects to the talk network and start listening for incoming
- // connections.
- void DoStart(Task* shutdown_task);
-
// Callback for protocol::SessionManager::Close().
void OnServerClosed();
@@ -168,6 +175,9 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
// Lock is to lock the access to |state_|.
Lock lock_;
+ // Configuration of the protocol.
+ scoped_ptr<protocol::CandidateSessionConfig> protocol_config_;
+
DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
};

Powered by Google App Engine
This is Rietveld 408576698