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> |
| 9 #include <stdint.h> |
8 #include <sys/mman.h> | 10 #include <sys/mman.h> |
9 | 11 |
10 #include "base/base64.h" | 12 #include "base/base64.h" |
11 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
13 #include "base/files/important_file_writer.h" | 15 #include "base/files/important_file_writer.h" |
14 #include "base/files/memory_mapped_file.h" | 16 #include "base/files/memory_mapped_file.h" |
15 #include "base/files/scoped_file.h" | 17 #include "base/files/scoped_file.h" |
16 #include "base/json/json_string_value_serializer.h" | 18 #include "base/json/json_string_value_serializer.h" |
17 #include "base/path_service.h" | 19 #include "base/path_service.h" |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 "component flash plugin will not be loaded."; | 215 "component flash plugin will not be loaded."; |
214 return false; | 216 return false; |
215 } | 217 } |
216 | 218 |
217 *path = plugin_path; | 219 *path = plugin_path; |
218 flash_version->assign(plugin_version_str); | 220 flash_version->assign(plugin_version_str); |
219 return true; | 221 return true; |
220 } | 222 } |
221 | 223 |
222 } // namespace component_flash_hint_file | 224 } // namespace component_flash_hint_file |
OLD | NEW |