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.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" | 26 #include "crypto/sha2.h" |
27 #include "gin/public/gin_features.h" | 27 #include "gin/public/gin_features.h" |
28 | 28 |
29 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | 29 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) |
30 #if defined(OS_ANDROID) | 30 #if defined(OS_ANDROID) |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 *snapshot_data_out = | 470 *snapshot_data_out = |
471 reinterpret_cast<const char*>(g_mapped_snapshot->data()); | 471 reinterpret_cast<const char*>(g_mapped_snapshot->data()); |
472 *snapshot_size_out = static_cast<int>(g_mapped_snapshot->length()); | 472 *snapshot_size_out = static_cast<int>(g_mapped_snapshot->length()); |
473 } else { | 473 } else { |
474 *snapshot_data_out = NULL; | 474 *snapshot_data_out = NULL; |
475 *snapshot_size_out = 0; | 475 *snapshot_size_out = 0; |
476 } | 476 } |
477 } | 477 } |
478 | 478 |
479 } // namespace gin | 479 } // namespace gin |
OLD | NEW |