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

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

Issue 13616004: Switch event type when a capture device has been stopped from the render process. This make sure th… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 27 matching lines...) Expand all
38 virtual void OnBufferReady(const VideoCaptureControllerID& id, 38 virtual void OnBufferReady(const VideoCaptureControllerID& id,
39 int buffer_id, 39 int buffer_id,
40 base::Time timestamp) = 0; 40 base::Time timestamp) = 0;
41 41
42 // The frame resolution the VideoCaptureDevice capture video in. 42 // The frame resolution the VideoCaptureDevice capture video in.
43 virtual void OnFrameInfo(const VideoCaptureControllerID& id, 43 virtual void OnFrameInfo(const VideoCaptureControllerID& id,
44 int width, 44 int width,
45 int height, 45 int height,
46 int frame_rate) = 0; 46 int frame_rate) = 0;
47 47
48 // The capture session has been paused. No more frame will be sent. 48 // The capture session has ended and no more more frames will be sent.
wjia(left Chromium) 2013/04/04 17:05:11 nit: remove the extra "more".
perkj_chrome 2013/04/05 09:19:35 Done.
49 virtual void OnPaused(const VideoCaptureControllerID& id) = 0; 49 virtual void OnEnded(const VideoCaptureControllerID& id) = 0;
50 50
51 protected: 51 protected:
52 virtual ~VideoCaptureControllerEventHandler() {} 52 virtual ~VideoCaptureControllerEventHandler() {}
53 }; 53 };
54 54
55 } // namespace content 55 } // namespace content
56 56
57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698