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

Side by Side Diff: remoting/host/ipc_video_frame_capturer.h

Issue 134633004: Roll libjingle+webrtc to r5397. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
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_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ 5 #ifndef REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_
6 #define REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ 6 #define REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 virtual ~IpcVideoFrameCapturer(); 31 virtual ~IpcVideoFrameCapturer();
32 32
33 // webrtc::DesktopCapturer interface. 33 // webrtc::DesktopCapturer interface.
34 virtual void Start(Callback* callback) OVERRIDE; 34 virtual void Start(Callback* callback) OVERRIDE;
35 virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE; 35 virtual void Capture(const webrtc::DesktopRegion& region) OVERRIDE;
36 36
37 // webrtc::ScreenCapturer interface. 37 // webrtc::ScreenCapturer interface.
38 virtual void SetMouseShapeObserver( 38 virtual void SetMouseShapeObserver(
39 MouseShapeObserver* mouse_shape_observer) OVERRIDE; 39 MouseShapeObserver* mouse_shape_observer) OVERRIDE;
40 40
41 virtual bool GetScreenList(ScreenList* screens) OVERRIDE;
42
43 virtual bool SelectScreen(webrtc::ScreenId id) OVERRIDE;
44
41 // Called when a video |frame| has been captured. 45 // Called when a video |frame| has been captured.
42 void OnCaptureCompleted(scoped_ptr<webrtc::DesktopFrame> frame); 46 void OnCaptureCompleted(scoped_ptr<webrtc::DesktopFrame> frame);
43 47
44 // Called when the cursor shape has changed. 48 // Called when the cursor shape has changed.
45 void OnCursorShapeChanged(scoped_ptr<webrtc::MouseCursorShape> cursor_shape); 49 void OnCursorShapeChanged(scoped_ptr<webrtc::MouseCursorShape> cursor_shape);
46 50
47 private: 51 private:
48 // Points to the callback passed to webrtc::ScreenCapturer::Start(). 52 // Points to the callback passed to webrtc::ScreenCapturer::Start().
49 webrtc::ScreenCapturer::Callback* callback_; 53 webrtc::ScreenCapturer::Callback* callback_;
50 54
51 MouseShapeObserver* mouse_shape_observer_; 55 MouseShapeObserver* mouse_shape_observer_;
52 56
53 // Wraps the IPC channel to the desktop session agent. 57 // Wraps the IPC channel to the desktop session agent.
54 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_; 58 scoped_refptr<DesktopSessionProxy> desktop_session_proxy_;
55 59
56 // Set to true when a frame is being captured. 60 // Set to true when a frame is being captured.
57 bool capture_pending_; 61 bool capture_pending_;
58 62
59 // Used to cancel tasks pending on the capturer when it is stopped. 63 // Used to cancel tasks pending on the capturer when it is stopped.
60 base::WeakPtrFactory<IpcVideoFrameCapturer> weak_factory_; 64 base::WeakPtrFactory<IpcVideoFrameCapturer> weak_factory_;
61 65
62 DISALLOW_COPY_AND_ASSIGN(IpcVideoFrameCapturer); 66 DISALLOW_COPY_AND_ASSIGN(IpcVideoFrameCapturer);
63 }; 67 };
64 68
65 } // namespace remoting 69 } // namespace remoting
66 70
67 #endif // REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_ 71 #endif // REMOTING_HOST_IPC_VIDEO_FRAME_CAPTURER_H_
OLDNEW
« no previous file with comments | « content/test/data/media/peerconnection-call.html ('k') | remoting/host/ipc_video_frame_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698