Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Side by Side Diff: remoting/client/plugin/chromoting_instance.h

Issue 11192042: Protocol plumbing for audio toggle. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 void Connect(const ClientConfig& config); 125 void Connect(const ClientConfig& config);
126 void Disconnect(); 126 void Disconnect();
127 void OnIncomingIq(const std::string& iq); 127 void OnIncomingIq(const std::string& iq);
128 void ReleaseAllKeys(); 128 void ReleaseAllKeys();
129 void InjectKeyEvent(const protocol::KeyEvent& event); 129 void InjectKeyEvent(const protocol::KeyEvent& event);
130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); 130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode);
131 void TrapKey(uint32 usb_keycode, bool trap); 131 void TrapKey(uint32 usb_keycode, bool trap);
132 void SendClipboardItem(const std::string& mime_type, const std::string& item); 132 void SendClipboardItem(const std::string& mime_type, const std::string& item);
133 void NotifyClientDimensions(int width, int height); 133 void NotifyClientDimensions(int width, int height);
134 void PauseVideo(bool pause); 134 void PauseVideo(bool pause);
135 void PauseAudio(bool pause);
135 136
136 // Return statistics record by ChromotingClient. 137 // Return statistics record by ChromotingClient.
137 // If no connection is currently active then NULL will be returned. 138 // If no connection is currently active then NULL will be returned.
138 ChromotingStats* GetStats(); 139 ChromotingStats* GetStats();
139 140
140 // Registers a global log message handler that redirects the log output to 141 // Registers a global log message handler that redirects the log output to
141 // our plugin instance. 142 // our plugin instance.
142 // This is called by the plugin's PPP_InitializeModule. 143 // This is called by the plugin's PPP_InitializeModule.
143 // Note that no logging will be processed unless a ChromotingInstance has been 144 // Note that no logging will be processed unless a ChromotingInstance has been
144 // registered for logging (see RegisterLoggingInstance). 145 // registered for logging (see RegisterLoggingInstance).
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 207 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
207 208
208 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 209 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
209 210
210 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 211 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
211 }; 212 };
212 213
213 } // namespace remoting 214 } // namespace remoting
214 215
215 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 216 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698