| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/files/file_enumerator.h" | 7 #include "base/files/file_enumerator.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/threading/worker_pool.h" | |
| 10 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" | 9 #include "chrome/browser/extensions/api/image_writer_private/error_messages.h" |
| 11 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| 12 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" | 11 #include "chrome/browser/extensions/api/image_writer_private/operation_manager.h
" |
| 13 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
| 14 | 13 |
| 15 namespace extensions { | 14 namespace extensions { |
| 16 namespace image_writer { | 15 namespace image_writer { |
| 17 | 16 |
| 18 using content::BrowserThread; | 17 using content::BrowserThread; |
| 19 | 18 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 54 } |
| 56 | 55 |
| 57 image_writer_client_->Verify( | 56 image_writer_client_->Verify( |
| 58 base::Bind(&Operation::WriteImageProgress, this, file_size), | 57 base::Bind(&Operation::WriteImageProgress, this, file_size), |
| 59 base::Bind(&Operation::CompleteAndContinue, this, continuation), | 58 base::Bind(&Operation::CompleteAndContinue, this, continuation), |
| 60 base::Bind(&Operation::Error, this), image_path_, device_path_); | 59 base::Bind(&Operation::Error, this), image_path_, device_path_); |
| 61 } | 60 } |
| 62 | 61 |
| 63 } // namespace image_writer | 62 } // namespace image_writer |
| 64 } // namespace extensions | 63 } // namespace extensions |
| OLD | NEW |