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

Side by Side Diff: remoting/host/plugin/host_script_object.h

Issue 8416007: Refactored web-app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added consistency comment. Moved debug log keyboard shortcut handling. Created 9 years, 1 month 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/remoting.gyp » ('j') | remoting/webapp/me2mom/client_screen.js » ('J')
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_PLUGIN_HOST_SCRIPT_OBJECT_H_ 5 #ifndef REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ 6 #define REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE; 77 virtual void OnClientAuthenticated(const std::string& jid) OVERRIDE;
78 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE; 78 virtual void OnClientDisconnected(const std::string& jid) OVERRIDE;
79 virtual void OnShutdown() OVERRIDE; 79 virtual void OnShutdown() OVERRIDE;
80 80
81 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread). 81 // Post LogDebugInfo to the correct proxy (and thus, on the correct thread).
82 // This should only be called by HostLogHandler. To log to the UI, use the 82 // This should only be called by HostLogHandler. To log to the UI, use the
83 // standard LOG(INFO) and it will be sent to this method. 83 // standard LOG(INFO) and it will be sent to this method.
84 void PostLogDebugInfo(const std::string& message); 84 void PostLogDebugInfo(const std::string& message);
85 85
86 private: 86 private:
87 // These state values are duplicated in the JS code. Remember to update both
88 // copies when making changes.
87 enum State { 89 enum State {
88 kDisconnected, 90 kDisconnected,
89 kStarting, 91 kStarting,
90 kRequestedAccessCode, 92 kRequestedAccessCode,
91 kReceivedAccessCode, 93 kReceivedAccessCode,
92 kConnected, 94 kConnected,
93 kDisconnecting, 95 kDisconnecting,
94 kError 96 kError
95 }; 97 };
96 98
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // it can be executed after at least one successful policy read. This 213 // it can be executed after at least one successful policy read. This
212 // variable contains the thunk if it is necessary. 214 // variable contains the thunk if it is necessary.
213 base::Closure pending_connect_; 215 base::Closure pending_connect_;
214 }; 216 };
215 217
216 } // namespace remoting 218 } // namespace remoting
217 219
218 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject); 220 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::HostNPScriptObject);
219 221
220 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_ 222 #endif // REMOTING_HOST_PLUGIN_HOST_SCRIPT_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/remoting.gyp » ('j') | remoting/webapp/me2mom/client_screen.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698