| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // Convenience wrapper to get the ChromotingScriptableObject. | 73 // Convenience wrapper to get the ChromotingScriptableObject. |
| 74 ChromotingScriptableObject* GetScriptableObject(); | 74 ChromotingScriptableObject* GetScriptableObject(); |
| 75 | 75 |
| 76 // Called by ChromotingScriptableObject to provide username and password. | 76 // Called by ChromotingScriptableObject to provide username and password. |
| 77 void SubmitLoginInfo(const std::string& username, | 77 void SubmitLoginInfo(const std::string& username, |
| 78 const std::string& password); | 78 const std::string& password); |
| 79 | 79 |
| 80 void LogDebugInfo(const std::string& info); | 80 void LogDebugInfo(const std::string& info); |
| 81 | 81 |
| 82 // Return statistics record by ChromotingClient. | 82 // Return statistics record by ChromotingClient. |
| 83 // If no connection is currently active then NULL will be returned. |
| 83 ChromotingStats* GetStats(); | 84 ChromotingStats* GetStats(); |
| 84 | 85 |
| 85 private: | 86 private: |
| 86 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); | 87 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); |
| 87 | 88 |
| 88 bool initialized_; | 89 bool initialized_; |
| 89 | 90 |
| 90 ClientContext context_; | 91 ClientContext context_; |
| 91 scoped_ptr<protocol::ConnectionToHost> host_connection_; | 92 scoped_ptr<protocol::ConnectionToHost> host_connection_; |
| 92 scoped_ptr<PepperView> view_; | 93 scoped_ptr<PepperView> view_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 112 // JavaScript interface to control this instance. | 113 // JavaScript interface to control this instance. |
| 113 // This wraps a ChromotingScriptableObject in a pp::Var. | 114 // This wraps a ChromotingScriptableObject in a pp::Var. |
| 114 pp::Var instance_object_; | 115 pp::Var instance_object_; |
| 115 | 116 |
| 116 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 117 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace remoting | 120 } // namespace remoting |
| 120 | 121 |
| 121 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 122 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
| OLD | NEW |