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

Side by Side Diff: content/renderer/pepper/pepper_video_capture_host.h

Issue 955253002: Add metadata to media::VideoFrame and plumb it through IPC/MediaStream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tommi's nits addressed Created 5 years, 9 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
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_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // frames delivered. 52 // frames delivered.
53 void OnStopped(); 53 void OnStopped();
54 54
55 // Called when video capture has paused. 55 // Called when video capture has paused.
56 void OnPaused(); 56 void OnPaused();
57 57
58 // Called when video capture cannot be started because of an error. 58 // Called when video capture cannot be started because of an error.
59 void OnError(); 59 void OnError();
60 60
61 // Called when a video frame is ready. 61 // Called when a video frame is ready.
62 void OnFrameReady(const scoped_refptr<media::VideoFrame>& frame, 62 void OnFrameReady(const scoped_refptr<media::VideoFrame>& frame);
63 media::VideoCaptureFormat format);
64 63
65 private: 64 private:
66 int32_t OnOpen(ppapi::host::HostMessageContext* context, 65 int32_t OnOpen(ppapi::host::HostMessageContext* context,
67 const std::string& device_id, 66 const std::string& device_id,
68 const PP_VideoCaptureDeviceInfo_Dev& requested_info, 67 const PP_VideoCaptureDeviceInfo_Dev& requested_info,
69 uint32_t buffer_count); 68 uint32_t buffer_count);
70 int32_t OnStartCapture(ppapi::host::HostMessageContext* context); 69 int32_t OnStartCapture(ppapi::host::HostMessageContext* context);
71 int32_t OnReuseBuffer(ppapi::host::HostMessageContext* context, 70 int32_t OnReuseBuffer(ppapi::host::HostMessageContext* context,
72 uint32_t buffer); 71 uint32_t buffer);
73 int32_t OnStopCapture(ppapi::host::HostMessageContext* context); 72 int32_t OnStopCapture(ppapi::host::HostMessageContext* context);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 ppapi::host::ReplyMessageContext open_reply_context_; 111 ppapi::host::ReplyMessageContext open_reply_context_;
113 112
114 PepperDeviceEnumerationHostHelper enumeration_helper_; 113 PepperDeviceEnumerationHostHelper enumeration_helper_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost); 115 DISALLOW_COPY_AND_ASSIGN(PepperVideoCaptureHost);
117 }; 116 };
118 117
119 } // namespace content 118 } // namespace content
120 119
121 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_ 120 #endif // CONTENT_RENDERER_PEPPER_PEPPER_VIDEO_CAPTURE_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_video_capture.cc ('k') | content/renderer/pepper/pepper_video_capture_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698