| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "gin/v8_initializer.h" | 5 #include "gin/v8_initializer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
| 13 #include "base/debug/crash_logging.h" | 13 #include "base/debug/crash_logging.h" |
| 14 #include "base/feature_list.h" | 14 #include "base/feature_list.h" |
| 15 #include "base/files/file.h" | 15 #include "base/files/file.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/files/memory_mapped_file.h" | 17 #include "base/files/memory_mapped_file.h" |
| 18 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
| 19 #include "base/logging.h" | 19 #include "base/logging.h" |
| 20 #include "base/metrics/histogram_macros.h" | 20 #include "base/metrics/histogram_macros.h" |
| 21 #include "base/rand_util.h" | 21 #include "base/rand_util.h" |
| 22 #include "base/strings/sys_string_conversions.h" | 22 #include "base/strings/sys_string_conversions.h" |
| 23 #include "base/sys_info.h" | 23 #include "base/sys_info.h" |
| 24 #include "base/threading/platform_thread.h" | 24 #include "base/threading/platform_thread.h" |
| 25 #include "base/time/time.h" | 25 #include "base/time/time.h" |
| 26 #include "crypto/sha2.h" | |
| 27 #include "gin/public/gin_features.h" | 26 #include "gin/public/gin_features.h" |
| 28 | 27 |
| 29 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | 28 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
| 30 #if defined(OS_ANDROID) | 29 #if defined(OS_ANDROID) |
| 31 #include "base/android/apk_assets.h" | 30 #include "base/android/apk_assets.h" |
| 32 #endif | 31 #endif |
| 33 #if defined(OS_MACOSX) | 32 #if defined(OS_MACOSX) |
| 34 #include "base/mac/foundation_util.h" | 33 #include "base/mac/foundation_util.h" |
| 35 #endif // OS_MACOSX | 34 #endif // OS_MACOSX |
| 36 #include "base/path_service.h" | 35 #include "base/path_service.h" |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 *snapshot_data_out = | 417 *snapshot_data_out = |
| 419 reinterpret_cast<const char*>(g_mapped_snapshot->data()); | 418 reinterpret_cast<const char*>(g_mapped_snapshot->data()); |
| 420 *snapshot_size_out = static_cast<int>(g_mapped_snapshot->length()); | 419 *snapshot_size_out = static_cast<int>(g_mapped_snapshot->length()); |
| 421 } else { | 420 } else { |
| 422 *snapshot_data_out = NULL; | 421 *snapshot_data_out = NULL; |
| 423 *snapshot_size_out = 0; | 422 *snapshot_size_out = 0; |
| 424 } | 423 } |
| 425 } | 424 } |
| 426 | 425 |
| 427 } // namespace gin | 426 } // namespace gin |
| OLD | NEW |