| OLD | NEW |
| 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 Loading... |
| 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(); |
| 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 Loading... |
| 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_ |
| OLD | NEW |