| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <errno.h> | 5 #include <errno.h> |
| 6 #include <fcntl.h> | 6 #include <fcntl.h> |
| 7 #include <sandbox.h> | 7 #include <sandbox.h> |
| 8 #include <stddef.h> |
| 9 #include <stdint.h> |
| 8 #include <stdio.h> | 10 #include <stdio.h> |
| 9 #include <stdlib.h> | 11 #include <stdlib.h> |
| 10 #include <string.h> | 12 #include <string.h> |
| 11 #include <sys/stat.h> | 13 #include <sys/stat.h> |
| 12 | 14 |
| 13 #include <string> | 15 #include <string> |
| 14 | 16 |
| 15 #include "base/files/file.h" | 17 #include "base/files/file.h" |
| 16 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
| 17 #include "base/posix/eintr_wrapper.h" | 20 #include "base/posix/eintr_wrapper.h" |
| 18 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 20 #include "chrome/utility/safe_browsing/mac/hfs.h" | 23 #include "chrome/utility/safe_browsing/mac/hfs.h" |
| 21 #include "chrome/utility/safe_browsing/mac/read_stream.h" | 24 #include "chrome/utility/safe_browsing/mac/read_stream.h" |
| 22 #include "chrome/utility/safe_browsing/mac/udif.h" | 25 #include "chrome/utility/safe_browsing/mac/udif.h" |
| 23 | 26 |
| 24 namespace { | 27 namespace { |
| 25 | 28 |
| 26 // SafeDMG (crdmg) is a utility that can perform a list or extract operation | 29 // SafeDMG (crdmg) is a utility that can perform a list or extract operation |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 | 247 |
| 245 return true; | 248 return true; |
| 246 } | 249 } |
| 247 | 250 |
| 248 } // namespace | 251 } // namespace |
| 249 | 252 |
| 250 int main(int argc, const char* argv[]) { | 253 int main(int argc, const char* argv[]) { |
| 251 SafeDMG safe_dmg; | 254 SafeDMG safe_dmg; |
| 252 return safe_dmg.Main(argc, argv); | 255 return safe_dmg.Main(argc, argv); |
| 253 } | 256 } |
| OLD | NEW |