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

Side by Side Diff: content/renderer/media/video_capture_impl_manager.h

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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
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 // VideoCaptureImplManager manages video capture devices in renderer process. 5 // VideoCaptureImplManager manages video capture devices in renderer process.
6 // The video capture clients use AddDevice() to get a pointer to 6 // The video capture clients use AddDevice() to get a pointer to
7 // video capture device. VideoCaputreImplManager supports multiple clients 7 // video capture device. VideoCaputreImplManager supports multiple clients
8 // accessing same device. 8 // accessing same device.
9 9
10 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ 10 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
(...skipping 29 matching lines...) Expand all
40 // Called by video capture client |handler| to remove device referenced 40 // Called by video capture client |handler| to remove device referenced
41 // by |id| from VideoCaptureImplManager's list of opened device list. 41 // by |id| from VideoCaptureImplManager's list of opened device list.
42 virtual void RemoveDevice(media::VideoCaptureSessionId id, 42 virtual void RemoveDevice(media::VideoCaptureSessionId id,
43 media::VideoCapture::EventHandler* handler); 43 media::VideoCapture::EventHandler* handler);
44 44
45 // Make all existing VideoCaptureImpl instances stop/resume delivering 45 // Make all existing VideoCaptureImpl instances stop/resume delivering
46 // video frames to their clients, depends on flag |suspend|. 46 // video frames to their clients, depends on flag |suspend|.
47 virtual void SuspendDevices(bool suspend); 47 virtual void SuspendDevices(bool suspend);
48 48
49 VideoCaptureMessageFilter* video_capture_message_filter() const { 49 VideoCaptureMessageFilter* video_capture_message_filter() const {
50 return filter_; 50 return filter_.get();
51 } 51 }
52 52
53 protected: 53 protected:
54 virtual ~VideoCaptureImplManager(); 54 virtual ~VideoCaptureImplManager();
55 55
56 private: 56 private:
57 friend class base::RefCountedThreadSafe<VideoCaptureImplManager>; 57 friend class base::RefCountedThreadSafe<VideoCaptureImplManager>;
58 58
59 struct Device { 59 struct Device {
60 Device(VideoCaptureImpl* device, 60 Device(VideoCaptureImpl* device,
(...skipping 12 matching lines...) Expand all
73 scoped_refptr<VideoCaptureMessageFilter> filter_; 73 scoped_refptr<VideoCaptureMessageFilter> filter_;
74 base::Thread thread_; 74 base::Thread thread_;
75 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 75 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); 77 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager);
78 }; 78 };
79 79
80 } // namespace content 80 } // namespace content
81 81
82 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ 82 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/video_capture_impl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698