| OLD | NEW |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Called by ChromotingScriptableObject to provide username and password. | 80 // Called by ChromotingScriptableObject to provide username and password. |
| 81 void SubmitLoginInfo(const std::string& username, | 81 void SubmitLoginInfo(const std::string& username, |
| 82 const std::string& password); | 82 const std::string& password); |
| 83 | 83 |
| 84 // Called by ChromotingScriptableObject to set scale-to-fit. | 84 // Called by ChromotingScriptableObject to set scale-to-fit. |
| 85 void SetScaleToFit(bool scale_to_fit); | 85 void SetScaleToFit(bool scale_to_fit); |
| 86 | 86 |
| 87 void LogDebugInfo(const std::string& info); | 87 void LogDebugInfo(const std::string& info); |
| 88 | 88 |
| 89 // Return statistics record by ChromotingClient. | 89 // Return statistics record by ChromotingClient. |
| 90 // If no connection is currently active then NULL will be returned. |
| 90 ChromotingStats* GetStats(); | 91 ChromotingStats* GetStats(); |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); | 94 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); |
| 94 | 95 |
| 95 bool initialized_; | 96 bool initialized_; |
| 96 | 97 |
| 97 ClientContext context_; | 98 ClientContext context_; |
| 98 scoped_ptr<protocol::ConnectionToHost> host_connection_; | 99 scoped_ptr<protocol::ConnectionToHost> host_connection_; |
| 99 scoped_ptr<PepperView> view_; | 100 scoped_ptr<PepperView> view_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 119 // JavaScript interface to control this instance. | 120 // JavaScript interface to control this instance. |
| 120 // This wraps a ChromotingScriptableObject in a pp::Var. | 121 // This wraps a ChromotingScriptableObject in a pp::Var. |
| 121 pp::Var instance_object_; | 122 pp::Var instance_object_; |
| 122 | 123 |
| 123 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 124 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 } // namespace remoting | 127 } // namespace remoting |
| 127 | 128 |
| 128 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 129 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |