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

Side by Side Diff: media/video/capture/video_capture_device_factory.h

Issue 720043003: Use factory method to create VideoCaptureDeviceFactory . (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes by review comments. Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 5 #ifndef MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_
6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 6 #define MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "media/video/capture/video_capture_device.h" 9 #include "media/video/capture/video_capture_device.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 ImageCaptureFormats* supported_formats) {} 46 ImageCaptureFormats* supported_formats) {}
47 47
48 protected: 48 protected:
49 // Gets the names of all video capture devices connected to this computer. 49 // Gets the names of all video capture devices connected to this computer.
50 // Used by the default implementation of EnumerateDeviceNames(). 50 // Used by the default implementation of EnumerateDeviceNames().
51 virtual void GetDeviceNames(VideoCaptureDevice::Names* device_names) = 0; 51 virtual void GetDeviceNames(VideoCaptureDevice::Names* device_names) = 0;
52 52
53 base::ThreadChecker thread_checker_; 53 base::ThreadChecker thread_checker_;
54 54
55 private: 55 private:
56 static VideoCaptureDeviceFactory* CreateVideoCaptureDeviceFactory(
57 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
58
56 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory); 59 DISALLOW_COPY_AND_ASSIGN(VideoCaptureDeviceFactory);
57 }; 60 };
58 61
59 } // namespace media 62 } // namespace media
60 63
61 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_ 64 #endif // MEDIA_VIDEO_CAPTURE_VIDEO_CAPTURE_DEVICE_FACTORY_H_
OLDNEW
« no previous file with comments | « media/video/capture/mac/video_capture_device_factory_mac.mm ('k') | media/video/capture/video_capture_device_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698