OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ |
6 #define CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ | 6 #define CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ |
7 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "ipc/ipc_descriptors.h" | 9 #include "ipc/ipc_descriptors.h" |
10 | 10 |
11 // This is a list of global descriptor keys to be used with the | 11 // This is a list of global descriptor keys to be used with the |
12 // base::GlobalDescriptors object (see base/posix/global_descriptors.h) | 12 // base::GlobalDescriptors object (see base/posix/global_descriptors.h) |
13 enum { | 13 enum { |
14 kCrashDumpSignal = kIPCDescriptorMax, | 14 kCrashDumpSignal = kIPCDescriptorMax, |
15 kSandboxIPCChannel, // https://chromium.googlesource.com/chromium/src/+/maste
r/docs/linux_sandbox_ipc.md | 15 kSandboxIPCChannel, // https://chromium.googlesource.com/chromium/src/+/maste
r/docs/linux_sandbox_ipc.md |
16 kMojoIPCChannel, | 16 kMojoIPCChannel, |
17 kFieldTrialDescriptor, | 17 kFieldTrialDescriptor, |
18 | 18 |
19 #if defined(V8_USE_EXTERNAL_STARTUP_DATA) | |
20 kV8NativesDataDescriptor, | |
21 #if defined(OS_ANDROID) | |
22 kV8SnapshotDataDescriptor32, | |
23 kV8SnapshotDataDescriptor64, | |
24 #else | |
25 kV8SnapshotDataDescriptor, | |
26 #endif | |
27 #endif | |
28 | |
29 #if defined(OS_ANDROID) | 19 #if defined(OS_ANDROID) |
30 kAndroidPropertyDescriptor, | 20 kAndroidPropertyDescriptor, |
31 kAndroidICUDataDescriptor, | 21 kAndroidICUDataDescriptor, |
32 #endif | 22 #endif |
33 | 23 |
| 24 // Reserves 100 to 199 for dynamically generated IDs. |
| 25 kContentDynamicDescriptorStart = 100, |
| 26 kContentDynamicDescriptorMax = 199, |
| 27 |
34 // The first key that embedders can use to register descriptors (see | 28 // The first key that embedders can use to register descriptors (see |
35 // base/posix/global_descriptors.h). | 29 // base/posix/global_descriptors.h). |
36 kContentIPCDescriptorMax | 30 kContentIPCDescriptorMax |
37 }; | 31 }; |
38 | 32 |
39 #endif // CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ | 33 #endif // CONTENT_PUBLIC_COMMON_CONTENT_DESCRIPTORS_H_ |
OLD | NEW |