| 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 "chrome/common/component_flash_hint_file_linux.h" | 5 #include "chrome/common/component_flash_hint_file_linux.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
| 11 | 11 |
| 12 #include "base/base64.h" | 12 #include "base/base64.h" |
| 13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/files/important_file_writer.h" | 15 #include "base/files/important_file_writer.h" |
| 16 #include "base/files/memory_mapped_file.h" | 16 #include "base/files/memory_mapped_file.h" |
| 17 #include "base/files/scoped_file.h" | 17 #include "base/files/scoped_file.h" |
| 18 #include "base/json/json_string_value_serializer.h" | 18 #include "base/json/json_string_value_serializer.h" |
| 19 #include "base/memory/scoped_ptr.h" |
| 19 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 20 #include "base/posix/eintr_wrapper.h" | 21 #include "base/posix/eintr_wrapper.h" |
| 21 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
| 22 #include "base/values.h" | 23 #include "base/values.h" |
| 23 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
| 24 #include "crypto/secure_hash.h" | 25 #include "crypto/secure_hash.h" |
| 25 #include "crypto/secure_util.h" | 26 #include "crypto/secure_util.h" |
| 26 #include "crypto/sha2.h" | 27 #include "crypto/sha2.h" |
| 27 | 28 |
| 28 namespace component_flash_hint_file { | 29 namespace component_flash_hint_file { |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 "component flash plugin will not be loaded."; | 216 "component flash plugin will not be loaded."; |
| 216 return false; | 217 return false; |
| 217 } | 218 } |
| 218 | 219 |
| 219 *path = plugin_path; | 220 *path = plugin_path; |
| 220 flash_version->assign(plugin_version_str); | 221 flash_version->assign(plugin_version_str); |
| 221 return true; | 222 return true; |
| 222 } | 223 } |
| 223 | 224 |
| 224 } // namespace component_flash_hint_file | 225 } // namespace component_flash_hint_file |
| OLD | NEW |