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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 25 matching lines...) Expand all
36 virtual media::VideoCapture* AddDevice( 36 virtual media::VideoCapture* AddDevice(
37 media::VideoCaptureSessionId id, 37 media::VideoCaptureSessionId id,
38 media::VideoCapture::EventHandler* handler); 38 media::VideoCapture::EventHandler* handler);
39 39
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 VideoCaptureMessageFilter* video_capture_message_filter() const { 45 VideoCaptureMessageFilter* video_capture_message_filter() const {
46 return filter_; 46 return filter_.get();
47 } 47 }
48 48
49 protected: 49 protected:
50 virtual ~VideoCaptureImplManager(); 50 virtual ~VideoCaptureImplManager();
51 51
52 private: 52 private:
53 friend class base::RefCountedThreadSafe<VideoCaptureImplManager>; 53 friend class base::RefCountedThreadSafe<VideoCaptureImplManager>;
54 54
55 struct Device { 55 struct Device {
56 Device(VideoCaptureImpl* device, 56 Device(VideoCaptureImpl* device,
(...skipping 12 matching lines...) Expand all
69 scoped_refptr<VideoCaptureMessageFilter> filter_; 69 scoped_refptr<VideoCaptureMessageFilter> filter_;
70 base::Thread thread_; 70 base::Thread thread_;
71 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; 71 scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager); 73 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImplManager);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_ 78 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_capture_delegate.cc ('k') | content/renderer/pepper/pepper_platform_audio_input_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698