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

Side by Side Diff: remoting/client/plugin/chromoting_scriptable_object.h

Issue 7065036: Add basic versioning check to Chromoting's plugin/JS code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments 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
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 // This implements the JavaScript class entrypoint for the plugin instance. 5 // This implements the JavaScript class entrypoint for the plugin instance.
6 // The Javascript API is defined as follows. 6 // The Javascript API is defined as follows.
7 // 7 //
8 // interface ChromotingScriptableObject { 8 // interface ChromotingScriptableObject {
9 // 9 //
10 // // Chromoting session API version (for this plugin).
11 // // This is compared with the javascript API version to verify that they are
12 // // compatible.
13 // readonly attribute unsigned short apiVersion;
14 //
15 // // The oldest API version that we support.
16 // // This will differ from |apiVersion| if we decide to maintain backward
17 // // compatibility with older API versions.
18 // readonly attribute unsigned short apiMinVersion;
19 //
10 // // Dimension of the desktop area. 20 // // Dimension of the desktop area.
11 // readonly attribute int desktopWidth; 21 // readonly attribute int desktopWidth;
12 // readonly attribute int desktopHeight; 22 // readonly attribute int desktopHeight;
13 // 23 //
14 // // Connection status. 24 // // Connection status.
15 // readonly attribute unsigned short status; 25 // readonly attribute unsigned short status;
16 // 26 //
17 // // Statistics. 27 // // Statistics.
18 // // Video Bandwidth in bytes per second. 28 // // Video Bandwidth in bytes per second.
19 // readonly attribute float videoBandwidth; 29 // readonly attribute float videoBandwidth;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 PropertyNameMap property_names_; 220 PropertyNameMap property_names_;
211 std::vector<PropertyDescriptor> properties_; 221 std::vector<PropertyDescriptor> properties_;
212 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 222 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
213 223
214 ChromotingInstance* instance_; 224 ChromotingInstance* instance_;
215 }; 225 };
216 226
217 } // namespace remoting 227 } // namespace remoting
218 228
219 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 229 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/client/appengine/static_files/chromoting_session.js ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698