OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/sequenced_task_runner.h" | 16 #include "base/sequenced_task_runner.h" |
16 #include "chrome/browser/media_galleries/media_scan_types.h" | 17 #include "chrome/browser/media_galleries/media_scan_types.h" |
17 | 18 |
18 // MediaFolderFinder scans local hard drives and look for folders that contain | 19 // MediaFolderFinder scans local hard drives and look for folders that contain |
19 // media files. | 20 // media files. |
20 class MediaFolderFinder { | 21 class MediaFolderFinder { |
21 public: | 22 public: |
22 // Key: path to a folder | 23 // Key: path to a folder |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // Set of roots to scan for testing. | 88 // Set of roots to scan for testing. |
88 bool has_roots_for_testing_; | 89 bool has_roots_for_testing_; |
89 std::vector<base::FilePath> roots_for_testing_; | 90 std::vector<base::FilePath> roots_for_testing_; |
90 | 91 |
91 base::WeakPtrFactory<MediaFolderFinder> weak_factory_; | 92 base::WeakPtrFactory<MediaFolderFinder> weak_factory_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(MediaFolderFinder); | 94 DISALLOW_COPY_AND_ASSIGN(MediaFolderFinder); |
94 }; | 95 }; |
95 | 96 |
96 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ | 97 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ |
OLD | NEW |