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

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

Issue 10391065: handle the case when device is closed before media pipeline is fully initialized. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: code review Created 8 years, 6 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) 2011 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"
11 11
(...skipping 24 matching lines...) Expand all
36 virtual void OnBufferReady(const VideoCaptureControllerID& id, 36 virtual void OnBufferReady(const VideoCaptureControllerID& id,
37 int buffer_id, 37 int buffer_id,
38 base::Time timestamp) = 0; 38 base::Time timestamp) = 0;
39 39
40 // The frame resolution the VideoCaptureDevice capture video in. 40 // The frame resolution the VideoCaptureDevice capture video in.
41 virtual void OnFrameInfo(const VideoCaptureControllerID& id, 41 virtual void OnFrameInfo(const VideoCaptureControllerID& id,
42 int width, 42 int width,
43 int height, 43 int height,
44 int frame_rate) = 0; 44 int frame_rate) = 0;
45 45
46 // The capture session has been paused. No more frame will be sent.
47 virtual void OnPaused(const VideoCaptureControllerID& id) = 0;
48
46 // Report that this object can be deleted. 49 // Report that this object can be deleted.
47 virtual void OnReadyToDelete(const VideoCaptureControllerID& id) = 0; 50 virtual void OnReadyToDelete(const VideoCaptureControllerID& id) = 0;
48 51
49 protected: 52 protected:
50 virtual ~VideoCaptureControllerEventHandler() {} 53 virtual ~VideoCaptureControllerEventHandler() {}
51 }; 54 };
52 55
53 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 56 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698