Unregister from GCM when the only GCM app is removed
[chromium-blink-merge.git] / media / video / capture / win / capability_list_win.h
blobe173439cd4d33c72e83ad54d183cee10a310af4c
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
3 // found in the LICENSE file.
5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads
7 // for capturing.
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_
12 #include <list>
14 #include "media/video/capture/video_capture_types.h"
16 namespace media {
18 struct CapabilityWin {
19 CapabilityWin(int index, const VideoCaptureFormat& format)
20 : stream_index(index), supported_format(format) {}
21 int stream_index;
22 VideoCaptureFormat supported_format;
25 typedef std::list<CapabilityWin> CapabilityList;
27 CapabilityWin GetBestMatchedCapability(const VideoCaptureFormat& requested,
28 const CapabilityList& capabilities);
30 } // namespace media
32 #endif // MEDIA_VIDEO_CAPTURE_WIN_CAPABILITY_LIST_WIN_H_