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

Side by Side Diff: remoting/client/plugin/chromoting_instance.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
« no previous file with comments | « remoting/client/chromoting_stats.cc ('k') | remoting/client/plugin/chromoting_instance.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 // TODO(ajwong): We need to come up with a better description of the 5 // TODO(ajwong): We need to come up with a better description of the
6 // responsibilities for each thread. 6 // responsibilities for each thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
10 10
(...skipping 21 matching lines...) Expand all
32 class Module; 32 class Module;
33 } // namespace pp 33 } // namespace pp
34 34
35 namespace remoting { 35 namespace remoting {
36 36
37 namespace protocol { 37 namespace protocol {
38 class ConnectionToHost; 38 class ConnectionToHost;
39 } // namespace protocol 39 } // namespace protocol
40 40
41 class ChromotingClient; 41 class ChromotingClient;
42 class ChromotingStats;
42 class ClientContext; 43 class ClientContext;
43 class InputHandler; 44 class InputHandler;
44 class JingleThread; 45 class JingleThread;
45 class PepperView; 46 class PepperView;
46 class PepperViewProxy; 47 class PepperViewProxy;
47 class RectangleUpdateDecoder; 48 class RectangleUpdateDecoder;
48 49
49 struct ClientConfig; 50 struct ClientConfig;
50 51
51 namespace protocol { 52 namespace protocol {
(...skipping 19 matching lines...) Expand all
71 72
72 // Convenience wrapper to get the ChromotingScriptableObject. 73 // Convenience wrapper to get the ChromotingScriptableObject.
73 ChromotingScriptableObject* GetScriptableObject(); 74 ChromotingScriptableObject* GetScriptableObject();
74 75
75 // Called by ChromotingScriptableObject to provide username and password. 76 // Called by ChromotingScriptableObject to provide username and password.
76 void SubmitLoginInfo(const std::string& username, 77 void SubmitLoginInfo(const std::string& username,
77 const std::string& password); 78 const std::string& password);
78 79
79 void LogDebugInfo(const std::string& info); 80 void LogDebugInfo(const std::string& info);
80 81
82 // Return statistics record by ChromotingClient.
83 ChromotingStats* GetStats();
84
81 private: 85 private:
82 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); 86 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup);
83 87
84 bool initialized_; 88 bool initialized_;
85 89
86 ClientContext context_; 90 ClientContext context_;
87 scoped_ptr<protocol::ConnectionToHost> host_connection_; 91 scoped_ptr<protocol::ConnectionToHost> host_connection_;
88 scoped_ptr<PepperView> view_; 92 scoped_ptr<PepperView> view_;
89 93
90 // PepperViewProxy is refcounted and used to interface between chromoting 94 // PepperViewProxy is refcounted and used to interface between chromoting
(...skipping 17 matching lines...) Expand all
108 // JavaScript interface to control this instance. 112 // JavaScript interface to control this instance.
109 // This wraps a ChromotingScriptableObject in a pp::Var. 113 // This wraps a ChromotingScriptableObject in a pp::Var.
110 pp::Var instance_object_; 114 pp::Var instance_object_;
111 115
112 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 116 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
113 }; 117 };
114 118
115 } // namespace remoting 119 } // namespace remoting
116 120
117 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 121 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/chromoting_stats.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698