OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 NET_BASE_DIRECTORY_LISTER_H_ | 5 #ifndef NET_BASE_DIRECTORY_LISTER_H_ |
6 #define NET_BASE_DIRECTORY_LISTER_H_ | 6 #define NET_BASE_DIRECTORY_LISTER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/cancellation_flag.h" | |
12 #include "base/file_path.h" | 11 #include "base/file_path.h" |
13 #include "base/file_util.h" | 12 #include "base/file_util.h" |
14 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/synchronization/cancellation_flag.h" |
15 #include "base/task.h" | 15 #include "base/task.h" |
16 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
17 | 17 |
18 class MessageLoop; | 18 class MessageLoop; |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 // | 22 // |
23 // This class provides an API for listing the contents of a directory on the | 23 // This class provides an API for listing the contents of a directory on the |
24 // filesystem asynchronously. It spawns a background thread, and enumerates | 24 // filesystem asynchronously. It spawns a background thread, and enumerates |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 DirectoryListerDelegate* delegate_; | 106 DirectoryListerDelegate* delegate_; |
107 SORT_TYPE sort_; | 107 SORT_TYPE sort_; |
108 MessageLoop* message_loop_; | 108 MessageLoop* message_loop_; |
109 base::PlatformThreadHandle thread_; | 109 base::PlatformThreadHandle thread_; |
110 base::CancellationFlag canceled_; | 110 base::CancellationFlag canceled_; |
111 }; | 111 }; |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
114 | 114 |
115 #endif // NET_BASE_DIRECTORY_LISTER_H_ | 115 #endif // NET_BASE_DIRECTORY_LISTER_H_ |
OLD | NEW |