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

Side by Side Diff: remoting/host/it2me_host_user_interface.h

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/it2me_host_user_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ 5 #ifndef REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ 6 #define REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 24 matching lines...) Expand all
35 // IT2Me-specific handling of multiple connection attempts. 35 // IT2Me-specific handling of multiple connection attempts.
36 class It2MeHostUserInterface : public HostStatusObserver { 36 class It2MeHostUserInterface : public HostStatusObserver {
37 public: 37 public:
38 It2MeHostUserInterface(ChromotingHost* host, ChromotingHostContext* context); 38 It2MeHostUserInterface(ChromotingHost* host, ChromotingHostContext* context);
39 virtual ~It2MeHostUserInterface(); 39 virtual ~It2MeHostUserInterface();
40 40
41 void Init(); 41 void Init();
42 42
43 // HostStatusObserver implementation. These methods will be called from the 43 // HostStatusObserver implementation. These methods will be called from the
44 // network thread. 44 // network thread.
45 virtual void OnSignallingConnected(SignalStrategy* signal_strategy, 45 virtual void OnSignallingConnected(SignalStrategy* signal_strategy) OVERRIDE;
46 const std::string& full_jid) OVERRIDE;
47 virtual void OnSignallingDisconnected() OVERRIDE; 46 virtual void OnSignallingDisconnected() OVERRIDE;
48 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 47 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
49 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 48 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
50 virtual void OnAccessDenied() OVERRIDE; 49 virtual void OnAccessDenied() OVERRIDE;
51 virtual void OnShutdown() OVERRIDE; 50 virtual void OnShutdown() OVERRIDE;
52 51
53 // Shuts down the object and all its resources synchronously. Must 52 // Shuts down the object and all its resources synchronously. Must
54 // be called on the UI thread. 53 // be called on the UI thread.
55 void Shutdown(); 54 void Shutdown();
56 55
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // The JID of the currently-authenticated user (or an empty string if no user 114 // The JID of the currently-authenticated user (or an empty string if no user
116 // is connected). 115 // is connected).
117 std::string authenticated_jid_; 116 std::string authenticated_jid_;
118 117
119 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface); 118 DISALLOW_COPY_AND_ASSIGN(It2MeHostUserInterface);
120 }; 119 };
121 120
122 } // namespace remoting 121 } // namespace remoting
123 122
124 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_ 123 #endif // REMOTING_HOST_IT2ME_HOST_USER_INTERFACE_H_
OLDNEW
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/it2me_host_user_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698