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 #ifndef COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ | 5 #ifndef COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ |
6 #define COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ | 6 #define COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 const size_t kMediumSize = kSmallSize * 4; | 41 const size_t kMediumSize = kSmallSize * 4; |
42 | 42 |
43 // A large crash key, which will be chunked on all platforms. This should be | 43 // A large crash key, which will be chunked on all platforms. This should be |
44 // used sparingly. | 44 // used sparingly. |
45 const size_t kLargeSize = kSmallSize * 16; | 45 const size_t kLargeSize = kSmallSize * 16; |
46 | 46 |
47 // Crash Key Name Constants //////////////////////////////////////////////////// | 47 // Crash Key Name Constants //////////////////////////////////////////////////// |
48 | 48 |
49 // The GUID used to identify this client to the crash system. | 49 // The GUID used to identify this client to the crash system. |
50 #if defined(OS_MACOSX) | 50 #if defined(OS_MACOSX) |
51 // On Mac OS X, the crash reporting client ID is the responsibility of Crashpad. | 51 // When using Crashpad, the crash reporting client ID is the responsibility of |
52 // It is not set directly by Chrome. To make the metrics client ID available on | 52 // Crashpad. It is not set directly by Chrome. To make the metrics client ID |
53 // the server, it's stored in a distinct key. | 53 // available on the server, it's stored in a distinct key. |
54 extern const char kMetricsClientId[]; | 54 extern const char kMetricsClientId[]; |
| 55 #elif defined(OS_WIN) |
| 56 extern const char kMetricsClientId[]; |
| 57 extern const char kClientId[]; |
55 #else | 58 #else |
56 // When using Breakpad instead of Crashpad, the crash reporting client ID is the | 59 // When using Breakpad instead of Crashpad, the crash reporting client ID is the |
57 // same as the metrics client ID. | 60 // same as the metrics client ID. |
58 extern const char kClientId[]; | 61 extern const char kClientId[]; |
59 #endif | 62 #endif |
60 | 63 |
61 // The product release/distribution channel. | 64 // The product release/distribution channel. |
62 extern const char kChannel[]; | 65 extern const char kChannel[]; |
63 | 66 |
64 // The total number of experiments the instance has. | 67 // The total number of experiments the instance has. |
(...skipping 13 matching lines...) Expand all Loading... |
78 // deliberate crash. | 81 // deliberate crash. |
79 extern const char kZombie[]; | 82 extern const char kZombie[]; |
80 extern const char kZombieTrace[]; | 83 extern const char kZombieTrace[]; |
81 | 84 |
82 } // namespace mac | 85 } // namespace mac |
83 #endif | 86 #endif |
84 | 87 |
85 } // namespace crash_keys | 88 } // namespace crash_keys |
86 | 89 |
87 #endif // COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ | 90 #endif // COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ |
OLD | NEW |