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

Unified Diff: remoting/host/desktop_session_agent.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.h
diff --git a/remoting/host/desktop_session_agent.h b/remoting/host/desktop_session_agent.h
index b5e6556cc09bcc85c529352bf17ce3b0c49d0475..b315b50b2dc0317d19f8e8ce6184b3f3d0a52dcd 100644
--- a/remoting/host/desktop_session_agent.h
+++ b/remoting/host/desktop_session_agent.h
@@ -15,9 +15,9 @@
#include "base/memory/weak_ptr.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_platform_file.h"
-#include "remoting/capturer/shared_buffer.h"
-#include "remoting/capturer/shared_buffer_factory.h"
-#include "remoting/capturer/video_frame_capturer.h"
+#include "media/video/capture/screen/screen_capturer.h"
+#include "media/video/capture/screen/shared_buffer.h"
+#include "media/video/capture/screen/shared_buffer_factory.h"
#include "remoting/host/mouse_move_observer.h"
#include "remoting/host/ui_strings.h"
#include "remoting/protocol/clipboard_stub.h"
@@ -49,8 +49,8 @@ class DesktopSessionAgent
: public base::RefCountedThreadSafe<DesktopSessionAgent>,
public IPC::Listener,
public MouseMoveObserver,
- public SharedBufferFactory,
- public VideoFrameCapturer::Delegate {
+ public media::SharedBufferFactory,
+ public media::ScreenCapturer::Delegate {
public:
class Delegate {
public:
@@ -80,14 +80,16 @@ class DesktopSessionAgent
virtual void OnLocalMouseMoved(const SkIPoint& new_pos) OVERRIDE;
// SharedBufferFactory implementation.
- virtual scoped_refptr<SharedBuffer> CreateSharedBuffer(uint32 size) OVERRIDE;
- virtual void ReleaseSharedBuffer(scoped_refptr<SharedBuffer> buffer) OVERRIDE;
+ virtual scoped_refptr<media::SharedBuffer> CreateSharedBuffer(
+ uint32 size) OVERRIDE;
+ virtual void ReleaseSharedBuffer(
+ scoped_refptr<media::SharedBuffer> buffer) OVERRIDE;
- // VideoFrameCapturer::Delegate implementation.
+ // media::ScreenCapturer::Delegate implementation.
virtual void OnCaptureCompleted(
- scoped_refptr<CaptureData> capture_data) OVERRIDE;
+ scoped_refptr<media::ScreenCaptureData> capture_data) OVERRIDE;
virtual void OnCursorShapeChanged(
- scoped_ptr<MouseCursorShape> cursor_shape) OVERRIDE;
+ scoped_ptr<media::MouseCursorShape> cursor_shape) OVERRIDE;
// Forwards a local clipboard event though the IPC channel to the network
// process.
@@ -233,14 +235,14 @@ class DesktopSessionAgent
int next_shared_buffer_id_;
// List of the shared buffers registered via |SharedBufferFactory| interface.
- typedef std::list<scoped_refptr<SharedBuffer> > SharedBuffers;
+ typedef std::list<scoped_refptr<media::SharedBuffer> > SharedBuffers;
SharedBuffers shared_buffers_;
// True if the desktop session agent has been started.
bool started_;
// Captures the screen.
- scoped_ptr<VideoFrameCapturer> video_capturer_;
+ scoped_ptr<media::ScreenCapturer> video_capturer_;
UiStrings ui_strings_;
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/desktop_session_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698