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

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

Issue 2415703002: Move files video_capture*.* from media/base to media/capture (Closed)
Patch Set: rebase Created 4 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 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
11 #include <map> 11 #include <map>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread_checker.h" 15 #include "base/threading/thread_checker.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "content/common/media/video_capture.h" 17 #include "content/common/media/video_capture.h"
18 #include "content/common/video_capture.mojom.h" 18 #include "content/common/video_capture.mojom.h"
19 #include "media/base/video_capture_types.h"
20 #include "media/base/video_frame.h" 19 #include "media/base/video_frame.h"
20 #include "media/capture/video_capture_types.h"
21 #include "mojo/public/cpp/bindings/binding.h" 21 #include "mojo/public/cpp/bindings/binding.h"
22 22
23 namespace content { 23 namespace content {
24 24
25 // VideoCaptureImpl represents a capture device in renderer process. It provides 25 // VideoCaptureImpl represents a capture device in renderer process. It provides
26 // an interface for clients to command the capture (Start, Stop, etc), and 26 // an interface for clients to command the capture (Start, Stop, etc), and
27 // communicates back to these clients e.g. the capture state or incoming 27 // communicates back to these clients e.g. the capture state or incoming
28 // captured VideoFrames. VideoCaptureImpl is created in the main Renderer thread 28 // captured VideoFrames. VideoCaptureImpl is created in the main Renderer thread
29 // but otherwise operates on |io_task_runner_|, which is usually the IO thread. 29 // but otherwise operates on |io_task_runner_|, which is usually the IO thread.
30 class CONTENT_EXPORT VideoCaptureImpl : public mojom::VideoCaptureObserver { 30 class CONTENT_EXPORT VideoCaptureImpl : public mojom::VideoCaptureObserver {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // media::VideoFrames constructed in OnBufferReceived() from buffers cached 157 // media::VideoFrames constructed in OnBufferReceived() from buffers cached
158 // in |client_buffers_|. 158 // in |client_buffers_|.
159 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_; 159 base::WeakPtrFactory<VideoCaptureImpl> weak_factory_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl); 161 DISALLOW_COPY_AND_ASSIGN(VideoCaptureImpl);
162 }; 162 };
163 163
164 } // namespace content 164 } // namespace content
165 165
166 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_ 166 #endif // CONTENT_RENDERER_MEDIA_VIDEO_CAPTURE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/pepper_to_video_track_adapter.cc ('k') | content/renderer/media/video_capture_impl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698