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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/i18n/file_util_icu.h" | 13 #include "base/i18n/file_util_icu.h" |
14 #include "base/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
16 #include "base/threading/worker_pool.h" | 16 #include "base/threading/worker_pool.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 | 18 |
19 namespace net { | 19 namespace net { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const int kFilesPerEvent = 8; | 23 const int kFilesPerEvent = 8; |
24 | 24 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 void DirectoryLister::OnReceivedData(const DirectoryListerData& data) { | 207 void DirectoryLister::OnReceivedData(const DirectoryListerData& data) { |
208 delegate_->OnListFile(data); | 208 delegate_->OnListFile(data); |
209 } | 209 } |
210 | 210 |
211 void DirectoryLister::OnDone(int error) { | 211 void DirectoryLister::OnDone(int error) { |
212 delegate_->OnListDone(error); | 212 delegate_->OnListDone(error); |
213 } | 213 } |
214 | 214 |
215 } // namespace net | 215 } // namespace net |
OLD | NEW |