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

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

Issue 101843005: Convert video capture pipline to base::TimeTicks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 9890509b Rebase, Windows compile fixes Created 6 years, 11 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 | Annotate | Revision Log
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_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HANDL ER_H_
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 virtual void OnBufferCreated(const VideoCaptureControllerID& id, 34 virtual void OnBufferCreated(const VideoCaptureControllerID& id,
35 base::SharedMemoryHandle handle, 35 base::SharedMemoryHandle handle,
36 int length, 36 int length,
37 int buffer_id) = 0; 37 int buffer_id) = 0;
38 38
39 // A previously created buffer has been freed and will no longer be used. 39 // A previously created buffer has been freed and will no longer be used.
40 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id, 40 virtual void OnBufferDestroyed(const VideoCaptureControllerID& id,
41 int buffer_id) = 0; 41 int buffer_id) = 0;
42 42
43 // A buffer has been filled with I420 video. 43 // A buffer has been filled with I420 video.
44 virtual void OnBufferReady( 44 virtual void OnBufferReady(const VideoCaptureControllerID& id,
45 const VideoCaptureControllerID& id, 45 int buffer_id,
46 int buffer_id, 46 base::TimeTicks timestamp,
47 base::Time timestamp, 47 const media::VideoCaptureFormat& format) = 0;
48 const media::VideoCaptureFormat& format) = 0;
49 48
50 // The capture session has ended and no more frames will be sent. 49 // The capture session has ended and no more frames will be sent.
51 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; 50 virtual void OnEnded(const VideoCaptureControllerID& id) = 0;
52 51
53 protected: 52 protected:
54 virtual ~VideoCaptureControllerEventHandler() {} 53 virtual ~VideoCaptureControllerEventHandler() {}
55 }; 54 };
56 55
57 } // namespace content 56 } // namespace content
58 57
59 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 58 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698