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

Side by Side Diff: content/common/media/video_capture.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: Addressed code review comments. 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains commonly used definitions of video capture. 5 // This file contains commonly used definitions of video capture.
6 6
7 #ifndef CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_ 7 #ifndef CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_
8 #define CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_ 8 #define CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_
9 9
10 namespace content { 10 namespace content {
11 11
12 // Current status of the video capture device. It's used by multiple classes 12 // Current status of the video capture device. It's used by multiple classes
13 // in browser process and renderer process. 13 // in browser process and renderer process.
14 // Browser process sends information about the current capture state and 14 // Browser process sends information about the current capture state and
15 // error to the renderer process using this type. 15 // error to the renderer process using this type.
16 enum VideoCaptureState { 16 enum VideoCaptureState {
17 VIDEO_CAPTURE_STATE_STARTING, 17 VIDEO_CAPTURE_STATE_STARTING,
18 VIDEO_CAPTURE_STATE_STARTED, 18 VIDEO_CAPTURE_STATE_STARTED,
19 VIDEO_CAPTURE_STATE_PAUSED, 19 VIDEO_CAPTURE_STATE_PAUSED,
20 VIDEO_CAPTURE_STATE_STOPPING, 20 VIDEO_CAPTURE_STATE_STOPPING,
21 VIDEO_CAPTURE_STATE_STOPPED, 21 VIDEO_CAPTURE_STATE_STOPPED,
22 VIDEO_CAPTURE_STATE_ERROR, 22 VIDEO_CAPTURE_STATE_ERROR,
23 VIDEO_CAPTURE_STATE_ENDED,
23 }; 24 };
24 25
25 } // namespace content 26 } // namespace content
26 27
27 #endif // CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_ 28 #endif // CONTENT_COMMON_MEDIA_VIDEO_CAPTURE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/video_capture_manager.cc ('k') | content/renderer/media/rtc_video_capture_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698