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

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

Issue 205583011: [Draft] Fix canceling pin prompt causes host overload (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add unittest to chromoting_host and jingle_session Created 6 years, 8 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 | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_
6 #define REMOTING_HOST_CHROMOTING_HOST_H_ 6 #define REMOTING_HOST_CHROMOTING_HOST_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Enables/disables curtaining when one or more clients are connected. 108 // Enables/disables curtaining when one or more clients are connected.
109 // Takes immediate effect if clients are already connected. 109 // Takes immediate effect if clients are already connected.
110 void SetEnableCurtaining(bool enable); 110 void SetEnableCurtaining(bool enable);
111 111
112 // Sets the maximum duration of any session. By default, a session has no 112 // Sets the maximum duration of any session. By default, a session has no
113 // maximum duration. 113 // maximum duration.
114 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration); 114 void SetMaximumSessionDuration(const base::TimeDelta& max_session_duration);
115 115
116 //////////////////////////////////////////////////////////////////////////// 116 ////////////////////////////////////////////////////////////////////////////
117 // ClientSession::EventHandler implementation. 117 // ClientSession::EventHandler implementation.
118 virtual void OnSessionAuthenticating(ClientSession* client) OVERRIDE;
118 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE; 119 virtual bool OnSessionAuthenticated(ClientSession* client) OVERRIDE;
119 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE; 120 virtual void OnSessionChannelsConnected(ClientSession* client) OVERRIDE;
120 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE; 121 virtual void OnSessionAuthenticationFailed(ClientSession* client) OVERRIDE;
121 virtual void OnSessionClosed(ClientSession* session) OVERRIDE; 122 virtual void OnSessionClosed(ClientSession* session) OVERRIDE;
122 virtual void OnSessionSequenceNumber(ClientSession* session, 123 virtual void OnSessionSequenceNumber(ClientSession* session,
123 int64 sequence_number) OVERRIDE; 124 int64 sequence_number) OVERRIDE;
124 virtual void OnSessionRouteChange( 125 virtual void OnSessionRouteChange(
125 ClientSession* session, 126 ClientSession* session,
126 const std::string& channel_name, 127 const std::string& channel_name,
127 const protocol::TransportRoute& route) OVERRIDE; 128 const protocol::TransportRoute& route) OVERRIDE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 scoped_refptr<protocol::PairingRegistry> pairing_registry_; 205 scoped_refptr<protocol::PairingRegistry> pairing_registry_;
205 206
206 base::WeakPtrFactory<ChromotingHost> weak_factory_; 207 base::WeakPtrFactory<ChromotingHost> weak_factory_;
207 208
208 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 209 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
209 }; 210 };
210 211
211 } // namespace remoting 212 } // namespace remoting
212 213
213 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 214 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698