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

Side by Side Diff: content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.h

Issue 2537513006: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/single_thread_task_runner.h" 18 #include "base/single_thread_task_runner.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "media/capture/video/video_capture_jpeg_decoder.h" 21 #include "media/capture/video/video_capture_jpeg_decoder.h"
22 #include "media/video/jpeg_decode_accelerator.h" 22 #include "media/video/jpeg_decode_accelerator.h"
23 23
24 namespace gpu { 24 namespace gpu {
25 class GpuChannelHost; 25 class GpuChannelHost;
26 } 26 }
27 27
28 namespace media {
29 class VideoFrame;
30 }
31
32 namespace content { 28 namespace content {
33 29
34 // Adapter to GpuJpegDecodeAccelerator for VideoCaptureDevice::Client. It takes 30 // Adapter to GpuJpegDecodeAccelerator for VideoCaptureDevice::Client. It takes
35 // care of GpuJpegDecodeAccelerator creation, shared memory, and threading 31 // care of GpuJpegDecodeAccelerator creation, shared memory, and threading
36 // issues. 32 // issues.
37 // 33 //
38 // All public methods except JpegDecodeAccelerator::Client ones should be called 34 // All public methods except JpegDecodeAccelerator::Client ones should be called
39 // on the same thread. JpegDecodeAccelerator::Client methods should be called on 35 // on the same thread. JpegDecodeAccelerator::Client methods should be called on
40 // the IO thread. 36 // the IO thread.
41 class CONTENT_EXPORT VideoCaptureGpuJpegDecoder 37 class CONTENT_EXPORT VideoCaptureGpuJpegDecoder
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::unique_ptr<base::SharedMemory> in_shared_memory_; 109 std::unique_ptr<base::SharedMemory> in_shared_memory_;
114 110
115 STATUS decoder_status_; 111 STATUS decoder_status_;
116 112
117 DISALLOW_COPY_AND_ASSIGN(VideoCaptureGpuJpegDecoder); 113 DISALLOW_COPY_AND_ASSIGN(VideoCaptureGpuJpegDecoder);
118 }; 114 };
119 115
120 } // namespace content 116 } // namespace content
121 117
122 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_ 118 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_GPU_JPEG_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698