OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/api/image_writer_private/operation.h" | 5 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/threading/worker_pool.h" | 10 #include "base/threading/worker_pool.h" |
11 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 11 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
12 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 12 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 namespace image_writer { | 16 namespace image_writer { |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); | 387 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); |
388 it != cleanup_functions_.end(); | 388 it != cleanup_functions_.end(); |
389 ++it) { | 389 ++it) { |
390 it->Run(); | 390 it->Run(); |
391 } | 391 } |
392 cleanup_functions_.clear(); | 392 cleanup_functions_.clear(); |
393 } | 393 } |
394 | 394 |
395 } // namespace image_writer | 395 } // namespace image_writer |
396 } // namespace extensions | 396 } // namespace extensions |
OLD | NEW |