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 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 const std::vector<base::FilePath>& graylisted_folders() const; | 45 const std::vector<base::FilePath>& graylisted_folders() const; |
46 | 46 |
47 private: | 47 private: |
48 friend class MediaFolderFinderTest; | 48 friend class MediaFolderFinderTest; |
49 friend class MediaGalleriesPlatformAppBrowserTest; | 49 friend class MediaGalleriesPlatformAppBrowserTest; |
50 | 50 |
51 class Worker; | 51 class Worker; |
52 struct WorkerReply { | 52 struct WorkerReply { |
53 WorkerReply(); | 53 WorkerReply(); |
| 54 WorkerReply(const WorkerReply& other); |
54 ~WorkerReply(); | 55 ~WorkerReply(); |
55 | 56 |
56 MediaGalleryScanResult scan_result; | 57 MediaGalleryScanResult scan_result; |
57 std::vector<base::FilePath> new_folders; | 58 std::vector<base::FilePath> new_folders; |
58 }; | 59 }; |
59 | 60 |
60 enum ScanState { | 61 enum ScanState { |
61 SCAN_STATE_NOT_STARTED, | 62 SCAN_STATE_NOT_STARTED, |
62 SCAN_STATE_STARTED, | 63 SCAN_STATE_STARTED, |
63 SCAN_STATE_FINISHED, | 64 SCAN_STATE_FINISHED, |
(...skipping 24 matching lines...) Expand all Loading... |
88 // Set of roots to scan for testing. | 89 // Set of roots to scan for testing. |
89 bool has_roots_for_testing_; | 90 bool has_roots_for_testing_; |
90 std::vector<base::FilePath> roots_for_testing_; | 91 std::vector<base::FilePath> roots_for_testing_; |
91 | 92 |
92 base::WeakPtrFactory<MediaFolderFinder> weak_factory_; | 93 base::WeakPtrFactory<MediaFolderFinder> weak_factory_; |
93 | 94 |
94 DISALLOW_COPY_AND_ASSIGN(MediaFolderFinder); | 95 DISALLOW_COPY_AND_ASSIGN(MediaFolderFinder); |
95 }; | 96 }; |
96 | 97 |
97 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ | 98 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_FOLDER_FINDER_H_ |
OLD | NEW |