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<base::debug::CrashKey> GetWhiteListedWebViewCrashKeys(); |
16 | 19 |
17 // Crash Key Name Constants //////////////////////////////////////////////////// | 20 // Crash Key Name Constants //////////////////////////////////////////////////// |
18 | 21 |
19 // GPU information. | 22 // GPU information. |
20 extern const char kGPUDriverVersion[]; | 23 extern const char kGPUDriverVersion[]; |
21 extern const char kGPUPixelShaderVersion[]; | 24 extern const char kGPUPixelShaderVersion[]; |
22 extern const char kGPUVertexShaderVersion[]; | 25 extern const char kGPUVertexShaderVersion[]; |
23 extern const char kGPUVendor[]; | 26 extern const char kGPUVendor[]; |
24 extern const char kGPURenderer[]; | 27 extern const char kGPURenderer[]; |
25 | 28 |
26 | 29 |
27 } // namespace crash_keys | 30 } // namespace crash_keys |
28 } // namespace android_webview | 31 } // namespace android_webview |
29 | 32 |
30 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ | 33 #endif // ANDROID_WEBVIEW_COMMON_CRASH_KEYS_H_ |
OLD | NEW |