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

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

Issue 6792038: Chromoting to report roundtrip latency (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 // 16 //
17 // // Statistics. 17 // // Statistics.
18 // // Video Bandwidth in bytes per second. 18 // // Video Bandwidth in bytes per second.
19 // readonly attribute float videoBandwidth; 19 // readonly attribute float videoBandwidth;
20 // // Latency for capturing in milliseconds. 20 // // Latency for capturing in milliseconds.
21 // readonly attribute int videoCaptureLatency; 21 // readonly attribute int videoCaptureLatency;
22 // // Latency for video encoding in milliseconds. 22 // // Latency for video encoding in milliseconds.
23 // readonly attribute int videoEncodeLatency; 23 // readonly attribute int videoEncodeLatency;
24 // // Latency for video decoding in milliseconds. 24 // // Latency for video decoding in milliseconds.
25 // readonly attribute int videoDecodeLatency; 25 // readonly attribute int videoDecodeLatency;
26 // // Latency for rendering in milliseconds. 26 // // Latency for rendering in milliseconds.
27 // readonly attribute int videoRenderLatency; 27 // readonly attribute int videoRenderLatency;
28 // // Latency between an event is sent and a corresponding video packet is
29 // // received.
30 // readonly attribute int roundTripLatency;
28 // 31 //
29 // // Constants for connection status. 32 // // Constants for connection status.
30 // const unsigned short STATUS_UNKNOWN = 0; 33 // const unsigned short STATUS_UNKNOWN = 0;
31 // const unsigned short STATUS_CONNECTING = 1; 34 // const unsigned short STATUS_CONNECTING = 1;
32 // const unsigned short STATUS_INITIALIZING = 2; 35 // const unsigned short STATUS_INITIALIZING = 2;
33 // const unsigned short STATUS_CONNECTED = 3; 36 // const unsigned short STATUS_CONNECTED = 3;
34 // const unsigned short STATUS_CLOSED = 4; 37 // const unsigned short STATUS_CLOSED = 4;
35 // const unsigned short STATUS_FAILED = 5; 38 // const unsigned short STATUS_FAILED = 5;
36 // 39 //
37 // // Connection quality. 40 // // Connection quality.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 PropertyNameMap property_names_; 203 PropertyNameMap property_names_;
201 std::vector<PropertyDescriptor> properties_; 204 std::vector<PropertyDescriptor> properties_;
202 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 205 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
203 206
204 ChromotingInstance* instance_; 207 ChromotingInstance* instance_;
205 }; 208 };
206 209
207 } // namespace remoting 210 } // namespace remoting
208 211
209 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 212 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_stats.cc ('k') | remoting/client/plugin/chromoting_scriptable_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698