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 // MediaFileSystemRegistry registers pictures directories and media devices as | 5 // MediaFileSystemRegistry registers pictures directories and media devices as |
6 // File API filesystems and keeps track of the path to filesystem ID mappings. | 6 // File API filesystems and keeps track of the path to filesystem ID mappings. |
7 | 7 |
8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 8 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
9 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 9 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // fsid (filesystem ID) used to hook up the API objects. | 46 // fsid (filesystem ID) used to hook up the API objects. |
47 struct MediaFileSystemInfo { | 47 struct MediaFileSystemInfo { |
48 MediaFileSystemInfo(const base::string16& fs_name, | 48 MediaFileSystemInfo(const base::string16& fs_name, |
49 const base::FilePath& fs_path, | 49 const base::FilePath& fs_path, |
50 const std::string& filesystem_id, | 50 const std::string& filesystem_id, |
51 MediaGalleryPrefId pref_id, | 51 MediaGalleryPrefId pref_id, |
52 const std::string& transient_device_id, | 52 const std::string& transient_device_id, |
53 bool removable, | 53 bool removable, |
54 bool media_device); | 54 bool media_device); |
55 MediaFileSystemInfo(); | 55 MediaFileSystemInfo(); |
| 56 MediaFileSystemInfo(const MediaFileSystemInfo& other); |
56 ~MediaFileSystemInfo(); | 57 ~MediaFileSystemInfo(); |
57 | 58 |
58 base::string16 name; | 59 base::string16 name; |
59 base::FilePath path; | 60 base::FilePath path; |
60 std::string fsid; | 61 std::string fsid; |
61 MediaGalleryPrefId pref_id; | 62 MediaGalleryPrefId pref_id; |
62 std::string transient_device_id; | 63 std::string transient_device_id; |
63 bool removable; | 64 bool removable; |
64 bool media_device; | 65 bool media_device; |
65 }; | 66 }; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 147 |
147 scoped_ptr<MediaFileSystemContext> file_system_context_; | 148 scoped_ptr<MediaFileSystemContext> file_system_context_; |
148 | 149 |
149 scoped_ptr<MediaScanManager> media_scan_manager_; | 150 scoped_ptr<MediaScanManager> media_scan_manager_; |
150 scoped_ptr<GalleryWatchManager> gallery_watch_manager_; | 151 scoped_ptr<GalleryWatchManager> gallery_watch_manager_; |
151 | 152 |
152 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); | 153 DISALLOW_COPY_AND_ASSIGN(MediaFileSystemRegistry); |
153 }; | 154 }; |
154 | 155 |
155 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ | 156 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FILE_SYSTEM_REGISTRY_H_ |
OLD | NEW |