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 | 9 |
| 10 #include "base/debug/crash_logging.h" |
| 11 |
10 namespace android_webview { | 12 namespace android_webview { |
11 namespace crash_keys { | 13 namespace crash_keys { |
12 | 14 |
13 // Registers all of the potential crash keys that can be sent to the crash | 15 // 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. | 16 // reporting server. Returns the size of the union of all keys. |
15 size_t RegisterWebViewCrashKeys(); | 17 size_t RegisterWebViewCrashKeys(); |
| 18 std::vector<const char*> GetWhiteListedWebViewCrashKeys(); |
| 19 std::vector<base::debug::CrashKey> GetWebViewCrashKeysToRegister(); |
16 | 20 |
17 // Crash Key Name Constants //////////////////////////////////////////////////// | 21 // Crash Key Name Constants //////////////////////////////////////////////////// |
18 | 22 |
19 // GPU information. | 23 // GPU information. |
20 extern const char kGPUDriverVersion[]; | 24 extern const char kGPUDriverVersion[]; |
21 extern const char kGPUPixelShaderVersion[]; | 25 extern const char kGPUPixelShaderVersion[]; |
22 extern const char kGPUVertexShaderVersion[]; | 26 extern const char kGPUVertexShaderVersion[]; |
23 extern const char kGPUVendor[]; | 27 extern const char kGPUVendor[]; |
24 extern const char kGPURenderer[]; | 28 extern const char kGPURenderer[]; |
25 | 29 |
26 | 30 |
27 } // namespace crash_keys | 31 } // namespace crash_keys |
28 } // namespace android_webview | 32 } // namespace android_webview |
29 | 33 |
30 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ | 34 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ |
OLD | NEW |