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

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: Remove redundant member of HostMessageDispatcher. 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
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..2cca222e2f1c6137ebf23b3352fa058e825eb8df 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.
@@ -53,8 +53,6 @@ class ConnectionToClient :
HostStub* host_stub,
InputStub* input_stub);
- virtual ~ConnectionToClient();
-
virtual void Init(Session* session);
// Returns the connection in use.
@@ -72,9 +70,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();
awong 2011/03/22 15:11:56 Does this need to be virtual?
Sergey Ulanov 2011/03/22 23:19:14 I think the rule is to make destructor virtual if
simonmorris 2011/03/23 10:35:20 Yes: this is a base class for MockConnectionToClie
+
private:
// Callback for protocol Session.
void OnSessionStateChange(Session::State state);

Powered by Google App Engine
This is Rietveld 408576698