Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / media_galleries / media_scan_types.h
1 // Copyright 2014 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.
4
5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_TYPES_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_TYPES_H_
7
8 struct MediaGalleryScanResult {
9   MediaGalleryScanResult();
10   int audio_count;
11   int image_count;
12   int video_count;
13 };
14
15 enum MediaGalleryScanFileType {
16   MEDIA_GALLERY_SCAN_FILE_TYPE_UNKNOWN = 0,
17   MEDIA_GALLERY_SCAN_FILE_TYPE_AUDIO = 1 << 0,
18   MEDIA_GALLERY_SCAN_FILE_TYPE_IMAGE = 1 << 1,
19   MEDIA_GALLERY_SCAN_FILE_TYPE_VIDEO = 1 << 2,
20 };
21
22 bool IsEmptyScanResult(const MediaGalleryScanResult& scan_result);
23
24 #endif  // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_SCAN_TYPES_H_