| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_enumerator.h" | 9 #include "base/files/file_enumerator.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/threading/worker_pool.h" | |
| 13 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 14 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 13 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
| 15 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 14 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 17 #include "third_party/zlib/google/zip_reader.h" | 16 #include "third_party/zlib/google/zip_reader.h" |
| 18 | 17 |
| 19 namespace extensions { | 18 namespace extensions { |
| 20 namespace image_writer { | 19 namespace image_writer { |
| 21 | 20 |
| 22 using content::BrowserThread; | 21 using content::BrowserThread; |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); | 354 for (std::vector<base::Closure>::iterator it = cleanup_functions_.begin(); |
| 356 it != cleanup_functions_.end(); | 355 it != cleanup_functions_.end(); |
| 357 ++it) { | 356 ++it) { |
| 358 it->Run(); | 357 it->Run(); |
| 359 } | 358 } |
| 360 cleanup_functions_.clear(); | 359 cleanup_functions_.clear(); |
| 361 } | 360 } |
| 362 | 361 |
| 363 } // namespace image_writer | 362 } // namespace image_writer |
| 364 } // namespace extensions | 363 } // namespace extensions |
| OLD | NEW |