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

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

Issue 7134023: Notify calling web-app when Host plugin becomes connected to a client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove blank line from rebase. Created 9 years, 6 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') | 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_CHROMOTING_HOST_H_ 5 #ifndef REMOTING_CHROMOTING_HOST_H_
6 #define REMOTING_CHROMOTING_HOST_H_ 6 #define REMOTING_CHROMOTING_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 }; 162 };
163 163
164 // This method is called if a client is disconnected from the host. 164 // This method is called if a client is disconnected from the host.
165 void OnClientDisconnected(protocol::ConnectionToClient* client); 165 void OnClientDisconnected(protocol::ConnectionToClient* client);
166 166
167 // Creates encoder for the specified configuration. 167 // Creates encoder for the specified configuration.
168 Encoder* CreateEncoder(const protocol::SessionConfig* config); 168 Encoder* CreateEncoder(const protocol::SessionConfig* config);
169 169
170 std::string GenerateHostAuthToken(const std::string& encoded_client_token); 170 std::string GenerateHostAuthToken(const std::string& encoded_client_token);
171 171
172 bool HasAuthenticatedClients() const; 172 int AuthenticatedClientsCount() const;
173 173
174 void EnableCurtainMode(bool enable); 174 void EnableCurtainMode(bool enable);
175 175
176 void MonitorLocalInputs(bool enable); 176 void MonitorLocalInputs(bool enable);
177 177
178 void ProcessPreAuthentication( 178 void ProcessPreAuthentication(
179 const scoped_refptr<protocol::ConnectionToClient>& connection); 179 const scoped_refptr<protocol::ConnectionToClient>& connection);
180 180
181 // Show or hide the Disconnect window on the UI thread. If |show| is false, 181 // Show or hide the Disconnect window on the UI thread. If |show| is false,
182 // hide the window, ignoring the |username| parameter. 182 // hide the window, ignoring the |username| parameter.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // Stores list of tasks that should be executed when we finish 246 // Stores list of tasks that should be executed when we finish
247 // shutdown. Used only while |state_| is set to kStopping. 247 // shutdown. Used only while |state_| is set to kStopping.
248 std::vector<Task*> shutdown_tasks_; 248 std::vector<Task*> shutdown_tasks_;
249 249
250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 250 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
251 }; 251 };
252 252
253 } // namespace remoting 253 } // namespace remoting
254 254
255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 255 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698