| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 void HandleSendClipboardItem(const base::DictionaryValue& data); | 202 void HandleSendClipboardItem(const base::DictionaryValue& data); |
| 203 void HandleNotifyClientResolution(const base::DictionaryValue& data); | 203 void HandleNotifyClientResolution(const base::DictionaryValue& data); |
| 204 void HandlePauseVideo(const base::DictionaryValue& data); | 204 void HandlePauseVideo(const base::DictionaryValue& data); |
| 205 void HandlePauseAudio(const base::DictionaryValue& data); | 205 void HandlePauseAudio(const base::DictionaryValue& data); |
| 206 void HandleOnPinFetched(const base::DictionaryValue& data); | 206 void HandleOnPinFetched(const base::DictionaryValue& data); |
| 207 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data); | 207 void HandleOnThirdPartyTokenFetched(const base::DictionaryValue& data); |
| 208 void HandleRequestPairing(const base::DictionaryValue& data); | 208 void HandleRequestPairing(const base::DictionaryValue& data); |
| 209 void HandleExtensionMessage(const base::DictionaryValue& data); | 209 void HandleExtensionMessage(const base::DictionaryValue& data); |
| 210 void HandleAllowMouseLockMessage(); | 210 void HandleAllowMouseLockMessage(); |
| 211 void HandleEnableMediaSourceRendering(); | 211 void HandleEnableMediaSourceRendering(); |
| 212 void HandleSendMouseInputWhenUnfocused(); |
| 212 | 213 |
| 213 // Helper method called from Connect() to connect with parsed config. | 214 // Helper method called from Connect() to connect with parsed config. |
| 214 void ConnectWithConfig(const ClientConfig& config, | 215 void ConnectWithConfig(const ClientConfig& config, |
| 215 const std::string& local_jid); | 216 const std::string& local_jid); |
| 216 | 217 |
| 217 // Helper method to post messages to the webapp. | 218 // Helper method to post messages to the webapp. |
| 218 void PostChromotingMessage(const std::string& method, | 219 void PostChromotingMessage(const std::string& method, |
| 219 const pp::VarDictionary& data); | 220 const pp::VarDictionary& data); |
| 220 | 221 |
| 221 // Same as above, but serializes messages to JSON before sending them. This | 222 // Same as above, but serializes messages to JSON before sending them. This |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 297 |
| 297 // Weak reference to this instance, used for global logging and task posting. | 298 // Weak reference to this instance, used for global logging and task posting. |
| 298 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 299 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
| 299 | 300 |
| 300 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 301 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 301 }; | 302 }; |
| 302 | 303 |
| 303 } // namespace remoting | 304 } // namespace remoting |
| 304 | 305 |
| 305 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 306 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |