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 #include "net/base/directory_lister.h" | 5 #include "net/base/directory_lister.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/i18n/file_util_icu.h" | 13 #include "base/i18n/file_util_icu.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/task_runner.h" | 16 #include "base/task_runner.h" |
17 #include "base/task_scheduler/post_task.h" | 17 #include "base/task_scheduler/post_task.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/threading/worker_pool.h" | |
21 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
22 | 21 |
23 namespace net { | 22 namespace net { |
24 | 23 |
25 namespace { | 24 namespace { |
26 | 25 |
27 bool IsDotDot(const base::FilePath& path) { | 26 bool IsDotDot(const base::FilePath& path) { |
28 return FILE_PATH_LITERAL("..") == path.BaseName().value(); | 27 return FILE_PATH_LITERAL("..") == path.BaseName().value(); |
29 } | 28 } |
30 | 29 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 193 |
195 void DirectoryLister::OnListFile(const DirectoryListerData& data) { | 194 void DirectoryLister::OnListFile(const DirectoryListerData& data) { |
196 delegate_->OnListFile(data); | 195 delegate_->OnListFile(data); |
197 } | 196 } |
198 | 197 |
199 void DirectoryLister::OnListDone(int error) { | 198 void DirectoryLister::OnListDone(int error) { |
200 delegate_->OnListDone(error); | 199 delegate_->OnListDone(error); |
201 } | 200 } |
202 | 201 |
203 } // namespace net | 202 } // namespace net |
OLD | NEW |