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

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

Issue 329663002: Fix MediaSource renderer to limit memory consumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« 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 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Uses the PIN request dialog in the webapp to obtain the shared secret. 249 // Uses the PIN request dialog in the webapp to obtain the shared secret.
250 void FetchSecretFromDialog( 250 void FetchSecretFromDialog(
251 bool pairing_supported, 251 bool pairing_supported,
252 const protocol::SecretFetchedCallback& secret_fetched_callback); 252 const protocol::SecretFetchedCallback& secret_fetched_callback);
253 253
254 // MediaSourceVideoRenderer::Delegate implementation. 254 // MediaSourceVideoRenderer::Delegate implementation.
255 virtual void OnMediaSourceSize(const webrtc::DesktopSize& size, 255 virtual void OnMediaSourceSize(const webrtc::DesktopSize& size,
256 const webrtc::DesktopVector& dpi) OVERRIDE; 256 const webrtc::DesktopVector& dpi) OVERRIDE;
257 virtual void OnMediaSourceShape(const webrtc::DesktopRegion& shape) OVERRIDE; 257 virtual void OnMediaSourceShape(const webrtc::DesktopRegion& shape) OVERRIDE;
258 virtual void OnMediaSourceReset(const std::string& format) OVERRIDE; 258 virtual void OnMediaSourceReset(const std::string& format) OVERRIDE;
259 virtual void OnMediaSourceData(uint8_t* buffer, size_t buffer_size) OVERRIDE; 259 virtual void OnMediaSourceData(uint8_t* buffer, size_t buffer_size,
260 bool keyframe) OVERRIDE;
260 261
261 bool initialized_; 262 bool initialized_;
262 263
263 PepperPluginThreadDelegate plugin_thread_delegate_; 264 PepperPluginThreadDelegate plugin_thread_delegate_;
264 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_; 265 scoped_refptr<PluginThreadTaskRunner> plugin_task_runner_;
265 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_; 266 scoped_ptr<base::ThreadTaskRunnerHandle> thread_task_runner_handle_;
266 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_; 267 scoped_ptr<jingle_glue::JingleThreadWrapper> thread_wrapper_;
267 ClientContext context_; 268 ClientContext context_;
268 scoped_ptr<VideoRenderer> video_renderer_; 269 scoped_ptr<VideoRenderer> video_renderer_;
269 scoped_ptr<PepperView> view_; 270 scoped_ptr<PepperView> view_;
(...skipping 28 matching lines...) Expand all
298 299
299 // Weak reference to this instance, used for global logging and task posting. 300 // Weak reference to this instance, used for global logging and task posting.
300 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 301 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
301 302
302 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 303 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
303 }; 304 };
304 305
305 } // namespace remoting 306 } // namespace remoting
306 307
307 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 308 #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