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 <CoreFoundation/CoreFoundation.h> | 5 #include <CoreFoundation/CoreFoundation.h> |
6 #include <IOKit/IOBSD.h> | 6 #include <IOKit/IOBSD.h> |
7 #include <IOKit/IOKitLib.h> | 7 #include <IOKit/IOKitLib.h> |
8 #include <IOKit/storage/IOBlockStorageDevice.h> | 8 #include <IOKit/storage/IOBlockStorageDevice.h> |
9 #include <IOKit/storage/IOMedia.h> | 9 #include <IOKit/storage/IOMedia.h> |
10 #include <IOKit/storage/IOStorageProtocolCharacteristics.h> | 10 #include <IOKit/storage/IOStorageProtocolCharacteristics.h> |
| 11 #include <stddef.h> |
11 #include <sys/socket.h> | 12 #include <sys/socket.h> |
12 | 13 |
13 #include "base/command_line.h" | 14 #include "base/command_line.h" |
14 #include "base/files/scoped_file.h" | 15 #include "base/files/scoped_file.h" |
15 #include "base/mac/scoped_cftyperef.h" | 16 #include "base/mac/scoped_cftyperef.h" |
16 #include "base/mac/scoped_ioobject.h" | 17 #include "base/mac/scoped_ioobject.h" |
17 #include "base/posix/eintr_wrapper.h" | 18 #include "base/posix/eintr_wrapper.h" |
18 #include "base/process/kill.h" | 19 #include "base/process/kill.h" |
19 #include "base/process/launch.h" | 20 #include "base/process/launch.h" |
20 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 if (child_exit_status) { | 166 if (child_exit_status) { |
166 LOG(ERROR) << "Child process returned failure."; | 167 LOG(ERROR) << "Child process returned failure."; |
167 return false; | 168 return false; |
168 } | 169 } |
169 | 170 |
170 return device_file_.IsValid(); | 171 return device_file_.IsValid(); |
171 } | 172 } |
172 | 173 |
173 } // namespace image_writer | 174 } // namespace image_writer |
OLD | NEW |