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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 // Called by ChromotingScriptableObject to set scale-to-fit. | 83 // Called by ChromotingScriptableObject to set scale-to-fit. |
84 void SetScaleToFit(bool scale_to_fit); | 84 void SetScaleToFit(bool scale_to_fit); |
85 | 85 |
86 void Log(int severity, const char* format, ...); | 86 void Log(int severity, const char* format, ...); |
87 void VLog(int verboselevel, const char* format, ...); | 87 void VLog(int verboselevel, const char* format, ...); |
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 // If no connection is currently active then NULL will be returned. |
91 ChromotingStats* GetStats(); | 91 ChromotingStats* GetStats(); |
92 | 92 |
| 93 void ReleaseAllKeys(); |
| 94 |
93 private: | 95 private: |
94 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); | 96 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); |
95 | 97 |
96 bool initialized_; | 98 bool initialized_; |
97 | 99 |
98 ClientContext context_; | 100 ClientContext context_; |
99 scoped_ptr<protocol::ConnectionToHost> host_connection_; | 101 scoped_ptr<protocol::ConnectionToHost> host_connection_; |
100 scoped_ptr<PepperView> view_; | 102 scoped_ptr<PepperView> view_; |
101 | 103 |
102 // PepperViewProxy is refcounted and used to interface between chromoting | 104 // PepperViewProxy is refcounted and used to interface between chromoting |
(...skipping 19 matching lines...) Expand all Loading... |
122 // JavaScript interface to control this instance. | 124 // JavaScript interface to control this instance. |
123 // This wraps a ChromotingScriptableObject in a pp::Var. | 125 // This wraps a ChromotingScriptableObject in a pp::Var. |
124 pp::Var instance_object_; | 126 pp::Var instance_object_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 128 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace remoting | 131 } // namespace remoting |
130 | 132 |
131 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 133 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |