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

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

Issue 1181743005: Report video and network stats averaged over 1s, and create corresponding UMA metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Declare time-window constants as static. Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // remove this method and use PostChromotingMessage() instead. 212 // remove this method and use PostChromotingMessage() instead.
213 void PostLegacyJsonMessage(const std::string& method, 213 void PostLegacyJsonMessage(const std::string& method,
214 scoped_ptr<base::DictionaryValue> data); 214 scoped_ptr<base::DictionaryValue> data);
215 215
216 // Posts trapped keys to the web-app to handle. 216 // Posts trapped keys to the web-app to handle.
217 void SendTrappedKey(uint32 usb_keycode, bool pressed); 217 void SendTrappedKey(uint32 usb_keycode, bool pressed);
218 218
219 // Callback for DelegatingSignalStrategy. 219 // Callback for DelegatingSignalStrategy.
220 void SendOutgoingIq(const std::string& iq); 220 void SendOutgoingIq(const std::string& iq);
221 221
222 void SendPerfStats(); 222 void SendDisplayPerfStats();
223
224 void SendUMAPerfStats();
Wez 2015/07/08 23:42:29 nit: SendUmaPerfStats() as per style-guide naming
anandc 2015/07/09 19:17:10 Reverted to a single function now.
223 225
224 void ProcessLogToUI(const std::string& message); 226 void ProcessLogToUI(const std::string& message);
225 227
226 // Returns true if the hosting content has the chrome-extension:// scheme. 228 // Returns true if the hosting content has the chrome-extension:// scheme.
227 bool IsCallerAppOrExtension(); 229 bool IsCallerAppOrExtension();
228 230
229 // Returns true if there is a ConnectionToHost and it is connected. 231 // Returns true if there is a ConnectionToHost and it is connected.
230 bool IsConnected(); 232 bool IsConnected();
231 233
232 // Used as the |FetchSecretCallback| for Me2Me connections. 234 // Used as the |FetchSecretCallback| for Me2Me connections.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 283
282 // Weak reference to this instance, used for global logging and task posting. 284 // Weak reference to this instance, used for global logging and task posting.
283 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 285 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
284 286
285 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 287 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
286 }; 288 };
287 289
288 } // namespace remoting 290 } // namespace remoting
289 291
290 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 292 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698