| 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 // When using Crashpad, the crash reporting client ID is the responsibility of | 51 // On Mac OS X, the crash reporting client ID is the responsibility of Crashpad. |
| 52 // Crashpad. It is not set directly by Chrome. To make the metrics client ID | 52 // It is not set directly by Chrome. To make the metrics client ID available on |
| 53 // available on the server, it's stored in a distinct key. | 53 // 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[]; | |
| 58 #else | 55 #else |
| 59 // When using Breakpad instead of Crashpad, the crash reporting client ID is the | 56 // When using Breakpad instead of Crashpad, the crash reporting client ID is the |
| 60 // same as the metrics client ID. | 57 // same as the metrics client ID. |
| 61 extern const char kClientId[]; | 58 extern const char kClientId[]; |
| 62 #endif | 59 #endif |
| 63 | 60 |
| 64 // The product release/distribution channel. | 61 // The product release/distribution channel. |
| 65 extern const char kChannel[]; | 62 extern const char kChannel[]; |
| 66 | 63 |
| 67 // The total number of experiments the instance has. | 64 // The total number of experiments the instance has. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 81 // deliberate crash. | 78 // deliberate crash. |
| 82 extern const char kZombie[]; | 79 extern const char kZombie[]; |
| 83 extern const char kZombieTrace[]; | 80 extern const char kZombieTrace[]; |
| 84 | 81 |
| 85 } // namespace mac | 82 } // namespace mac |
| 86 #endif | 83 #endif |
| 87 | 84 |
| 88 } // namespace crash_keys | 85 } // namespace crash_keys |
| 89 | 86 |
| 90 #endif // COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ | 87 #endif // COMPONENTS_CRASH_CORE_COMMON_CRASH_KEYS_H_ |
| OLD | NEW |