OLD | NEW |
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/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 content { | 12 namespace content { |
13 | 13 |
14 // ID used for identifying an object of VideoCaptureController. | 14 // ID used for identifying an object of VideoCaptureController. |
15 struct CONTENT_EXPORT VideoCaptureControllerID { | 15 struct CONTENT_EXPORT VideoCaptureControllerID { |
16 explicit VideoCaptureControllerID(int device_id); | 16 explicit VideoCaptureControllerID(int device_id); |
17 | 17 |
18 bool operator<(const VideoCaptureControllerID& vc) const; | 18 bool operator<(const VideoCaptureControllerID& vc) const; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // The capture session has ended and no more frames will be sent. | 54 // The capture session has ended and no more frames will be sent. |
55 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; | 55 virtual void OnEnded(const VideoCaptureControllerID& id) = 0; |
56 | 56 |
57 protected: | 57 protected: |
58 virtual ~VideoCaptureControllerEventHandler() {} | 58 virtual ~VideoCaptureControllerEventHandler() {} |
59 }; | 59 }; |
60 | 60 |
61 } // namespace content | 61 } // namespace content |
62 | 62 |
63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ | 63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_VIDEO_CAPTURE_CONTROLLER_EVENT_HA
NDLER_H_ |
OLD | NEW |