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

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

Issue 6736009: Measure bandwidth for chromoting video channel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: done Created 9 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
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 // // Dimension of the desktop area. 10 // // Dimension of the desktop area.
11 // readonly attribute int desktopWidth; 11 // readonly attribute int desktopWidth;
12 // readonly attribute int desktopHeight; 12 // readonly attribute int desktopHeight;
13 // 13 //
14 // // Connection status. 14 // // Connection status.
15 // readonly attribute unsigned short status; 15 // readonly attribute unsigned short status;
16 //
17 // // Statistics.
18 // // Video Bandwidth in bytes per second.
19 // readonly attribute float videoBandwidth;
20 //
16 // // Constants for connection status. 21 // // Constants for connection status.
17 // const unsigned short STATUS_UNKNOWN = 0; 22 // const unsigned short STATUS_UNKNOWN = 0;
18 // const unsigned short STATUS_CONNECTING = 1; 23 // const unsigned short STATUS_CONNECTING = 1;
19 // const unsigned short STATUS_INITIALIZING = 2; 24 // const unsigned short STATUS_INITIALIZING = 2;
20 // const unsigned short STATUS_CONNECTED = 3; 25 // const unsigned short STATUS_CONNECTED = 3;
21 // const unsigned short STATUS_CLOSED = 4; 26 // const unsigned short STATUS_CLOSED = 4;
22 // const unsigned short STATUS_FAILED = 5; 27 // const unsigned short STATUS_FAILED = 5;
23 // 28 //
24 // // Connection quality. 29 // // Connection quality.
25 // readonly attribute unsigned short quality; 30 // readonly attribute unsigned short quality;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 PropertyNameMap property_names_; 192 PropertyNameMap property_names_;
188 std::vector<PropertyDescriptor> properties_; 193 std::vector<PropertyDescriptor> properties_;
189 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 194 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
190 195
191 ChromotingInstance* instance_; 196 ChromotingInstance* instance_;
192 }; 197 };
193 198
194 } // namespace remoting 199 } // namespace remoting
195 200
196 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 201 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698