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 "chrome/utility/image_writer/image_writer.h" | 5 #include "chrome/utility/image_writer/image_writer.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/memory/aligned_memory.h" | 10 #include "base/memory/aligned_memory.h" |
11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/utility/image_writer/error_messages.h" | 14 #include "chrome/utility/image_writer/error_messages.h" |
15 #include "chrome/utility/image_writer/image_writer_handler.h" | 15 #include "chrome/utility/image_writer/image_writer_handler.h" |
16 #include "content/public/utility/utility_thread.h" | 16 #include "content/public/utility/utility_thread.h" |
17 | 17 |
18 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
19 #include "chrome/utility/image_writer/disk_unmounter_mac.h" | 19 #include "chrome/utility/image_writer/disk_unmounter_mac.h" |
20 #endif | 20 #endif |
21 | 21 |
22 namespace image_writer { | 22 namespace image_writer { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 running_ = false; | 196 running_ = false; |
197 } else { | 197 } else { |
198 // Unable to read entire file. | 198 // Unable to read entire file. |
199 LOG(ERROR) << "Failed to read " << kBurningBlockSize << " bytes of image " | 199 LOG(ERROR) << "Failed to read " << kBurningBlockSize << " bytes of image " |
200 << "at offset " << bytes_processed_; | 200 << "at offset " << bytes_processed_; |
201 Error(error::kReadImage); | 201 Error(error::kReadImage); |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 } // namespace image_writer | 205 } // namespace image_writer |
OLD | NEW |