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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 void SetScaleToFit(bool scale_to_fit); | 75 void SetScaleToFit(bool scale_to_fit); |
76 | 76 |
77 // Return statistics record by ChromotingClient. | 77 // Return statistics record by ChromotingClient. |
78 // If no connection is currently active then NULL will be returned. | 78 // If no connection is currently active then NULL will be returned. |
79 ChromotingStats* GetStats(); | 79 ChromotingStats* GetStats(); |
80 | 80 |
81 void ReleaseAllKeys(); | 81 void ReleaseAllKeys(); |
82 | 82 |
83 bool DoScaling() const { return scale_to_fit_; } | 83 bool DoScaling() const { return scale_to_fit_; } |
84 | 84 |
| 85 // TODO(alexeypa): Give the plugin a way to call the decoder directly and |
| 86 // remove this method. |
| 87 void RefreshFullFrame(); |
| 88 |
85 // Registers a global log message handler that redirects the log output to | 89 // Registers a global log message handler that redirects the log output to |
86 // our plugin instance. | 90 // our plugin instance. |
87 // This is called by the plugin's PPP_InitializeModule. | 91 // This is called by the plugin's PPP_InitializeModule. |
88 // Note that no logging will be processed unless a ChromotingInstance has been | 92 // Note that no logging will be processed unless a ChromotingInstance has been |
89 // registered for logging (see RegisterLoggingInstance). | 93 // registered for logging (see RegisterLoggingInstance). |
90 static void RegisterLogMessageHandler(); | 94 static void RegisterLogMessageHandler(); |
91 | 95 |
92 // Registers this instance so it processes messages sent by the global log | 96 // Registers this instance so it processes messages sent by the global log |
93 // message handler. This overwrites any previously registered instance. | 97 // message handler. This overwrites any previously registered instance. |
94 void RegisterLoggingInstance(); | 98 void RegisterLoggingInstance(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 pp::Var instance_object_; | 142 pp::Var instance_object_; |
139 | 143 |
140 scoped_ptr<ScopedThreadProxy> thread_proxy_; | 144 scoped_ptr<ScopedThreadProxy> thread_proxy_; |
141 | 145 |
142 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 146 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
143 }; | 147 }; |
144 | 148 |
145 } // namespace remoting | 149 } // namespace remoting |
146 | 150 |
147 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 151 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |