| 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/file_enumerator.h" | 6 #include "base/files/file_enumerator.h" |
| 7 #include "base/platform_file.h" |
| 7 #include "base/threading/worker_pool.h" | 8 #include "base/threading/worker_pool.h" |
| 8 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
| 9 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| 10 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 11 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 11 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 12 | 13 |
| 13 namespace extensions { | 14 namespace extensions { |
| 14 namespace image_writer { | 15 namespace image_writer { |
| 15 | 16 |
| 16 using content::BrowserThread; | 17 using content::BrowserThread; |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); | 350 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); |
| 350 it != cleanup_functions_.end(); | 351 it != cleanup_functions_.end(); |
| 351 ++it) { | 352 ++it) { |
| 352 it->Run(); | 353 it->Run(); |
| 353 } | 354 } |
| 354 cleanup_functions_.clear(); | 355 cleanup_functions_.clear(); |
| 355 } | 356 } |
| 356 | 357 |
| 357 } // namespace image_writer | 358 } // namespace image_writer |
| 358 } // namespace extensions | 359 } // namespace extensions |
| OLD | NEW |