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

Unified Diff: remoting/protocol/connection_to_client.h

Issue 6711033: A new authenticated connection evicts an old one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 9 years, 9 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/desktop_environment_fake.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/connection_to_client.h
diff --git a/remoting/protocol/connection_to_client.h b/remoting/protocol/connection_to_client.h
index d2721f3303c2c34689882b27128e487502b55685..c9e4555475e7d6624fb67c443a6e4154ff550e67 100644
--- a/remoting/protocol/connection_to_client.h
+++ b/remoting/protocol/connection_to_client.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -50,11 +50,8 @@ class ConnectionToClient :
// It is guranteed that |handler| is called only on the |message_loop|.
ConnectionToClient(MessageLoop* message_loop,
EventHandler* handler,
- HostStub* host_stub,
InputStub* input_stub);
- virtual ~ConnectionToClient();
-
virtual void Init(Session* session);
// Returns the connection in use.
@@ -72,9 +69,19 @@ class ConnectionToClient :
// Return pointer to ClientStub.
virtual ClientStub* client_stub();
+ virtual HostStub* host_stub();
+ virtual void set_host_stub(HostStub* host_stub);
+
// Called when the host accepts the client authentication.
void OnClientAuthenticated();
+ // Whether the client has been authenticated.
+ bool client_authenticated();
+
+ protected:
+ friend class base::RefCountedThreadSafe<ConnectionToClient>;
+ virtual ~ConnectionToClient();
+
private:
// Callback for protocol Session.
void OnSessionStateChange(Session::State state);
« no previous file with comments | « remoting/host/desktop_environment_fake.cc ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698