OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ | 5 #ifndef ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ |
6 #define ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ | 6 #define ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string> |
9 | 10 |
10 namespace android_webview { | 11 namespace android_webview { |
11 namespace crash_keys { | 12 namespace crash_keys { |
12 | 13 |
13 // Registers all of the potential crash keys that can be sent to the crash | 14 // Registers all of the potential crash keys that can be sent to the crash |
14 // reporting server. Returns the size of the union of all keys. | 15 // reporting server. Returns the size of the union of all keys. |
15 size_t RegisterWebViewCrashKeys(); | 16 size_t RegisterWebViewCrashKeys(); |
| 17 void InitCrashKeysForWebViewTesting(); |
| 18 void SetCrashKeyValue(const std::string& key, const std::string& value); |
| 19 |
| 20 extern const char* const kWebViewCrashKeyWhiteList[]; |
16 | 21 |
17 // Crash Key Name Constants //////////////////////////////////////////////////// | 22 // Crash Key Name Constants //////////////////////////////////////////////////// |
18 | 23 |
19 // GPU information. | 24 // GPU information. |
20 extern const char kGPUDriverVersion[]; | 25 extern const char kGPUDriverVersion[]; |
21 extern const char kGPUPixelShaderVersion[]; | 26 extern const char kGPUPixelShaderVersion[]; |
22 extern const char kGPUVertexShaderVersion[]; | 27 extern const char kGPUVertexShaderVersion[]; |
23 extern const char kGPUVendor[]; | 28 extern const char kGPUVendor[]; |
24 extern const char kGPURenderer[]; | 29 extern const char kGPURenderer[]; |
25 | 30 |
26 | 31 |
27 } // namespace crash_keys | 32 } // namespace crash_keys |
28 } // namespace android_webview | 33 } // namespace android_webview |
29 | 34 |
30 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ | 35 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ |
OLD | NEW |