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

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

Issue 22876027: Consolidate duplicated frame / capability structures in video_capture_types.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased: changed media::VideoCaptureCapability::kI420 -> media::PIXEL_FORMAT_I420 etc. Created 7 years, 3 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_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"
11 11
12 namespace media { 12 namespace media {
13 struct VideoCaptureCapability; 13 class VideoCaptureCapability;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 // ID used for identifying an object of VideoCaptureController. 18 // ID used for identifying an object of VideoCaptureController.
19 struct CONTENT_EXPORT VideoCaptureControllerID { 19 struct CONTENT_EXPORT VideoCaptureControllerID {
20 explicit VideoCaptureControllerID(int device_id); 20 explicit VideoCaptureControllerID(int device_id);
21 21
22 bool operator<(const VideoCaptureControllerID& vc) const; 22 bool operator<(const VideoCaptureControllerID& vc) const;
23 bool operator==(const VideoCaptureControllerID& vc) const; 23 bool operator==(const VideoCaptureControllerID& vc) const;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // The capture session has ended and no more frames will be sent. 56 // The capture session has ended and no more frames will be sent.
57 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; 57 virtual void OnEnded(const VideoCaptureControllerID& id) = 0;
58 58
59 protected: 59 protected:
60 virtual ~VideoCaptureControllerEventHandler() {} 60 virtual ~VideoCaptureControllerEventHandler() {}
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_ 65 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA NDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698