OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 | 16 |
17 class Profile; | 17 class Profile; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class FilePath; | 20 class FilePath; |
21 } // namespace base | 21 } // namespace base |
22 | 22 |
23 namespace storage { | |
24 class FileSystemURL; | |
25 } // namespace storage | |
26 | |
27 namespace extensions { | 23 namespace extensions { |
28 namespace app_file_handler_util { | 24 namespace app_file_handler_util { |
29 | 25 |
30 class IsDirectoryCollector { | 26 class IsDirectoryCollector { |
31 public: | 27 public: |
32 typedef base::Callback<void(std::unique_ptr<std::set<base::FilePath>>)> | 28 typedef base::Callback<void(std::unique_ptr<std::set<base::FilePath>>)> |
33 CompletionCallback; | 29 CompletionCallback; |
34 | 30 |
35 explicit IsDirectoryCollector(Profile* profile); | 31 explicit IsDirectoryCollector(Profile* profile); |
36 virtual ~IsDirectoryCollector(); | 32 virtual ~IsDirectoryCollector(); |
(...skipping 13 matching lines...) Expand all Loading... |
50 CompletionCallback callback_; | 46 CompletionCallback callback_; |
51 base::WeakPtrFactory<IsDirectoryCollector> weak_ptr_factory_; | 47 base::WeakPtrFactory<IsDirectoryCollector> weak_ptr_factory_; |
52 | 48 |
53 DISALLOW_COPY_AND_ASSIGN(IsDirectoryCollector); | 49 DISALLOW_COPY_AND_ASSIGN(IsDirectoryCollector); |
54 }; | 50 }; |
55 | 51 |
56 } // namespace app_file_handler_util | 52 } // namespace app_file_handler_util |
57 } // namespace extensions | 53 } // namespace extensions |
58 | 54 |
59 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_API_FILE_HANDLERS_DIRECTORY_UTIL_H_ |
OLD | NEW |