OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_COMMON_CRASH_KEYS_H_ | 5 #ifndef CHROME_COMMON_CRASH_KEYS_H_ |
6 #define CHROME_COMMON_CRASH_KEYS_H_ | 6 #define CHROME_COMMON_CRASH_KEYS_H_ |
7 | 7 |
8 #include <set> | |
9 #include <string> | |
10 | |
8 #include "base/debug/crash_logging.h" | 11 #include "base/debug/crash_logging.h" |
9 | 12 |
10 namespace crash_keys { | 13 namespace crash_keys { |
11 | 14 |
12 // 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 |
13 // reporting server. Returns the size of the union of all keys. | 16 // reporting server. Returns the size of the union of all keys. |
14 size_t RegisterChromeCrashKeys(); | 17 size_t RegisterChromeCrashKeys(); |
15 | 18 |
19 // Sets the list of "active" extensions in this process. We overload "active" to | |
20 // mean different things depending on the process type: | |
21 // - browser: all enabled extensions | |
22 // - renderer: the unique set of extension ids from all content scripts | |
23 // - extension: the id of each extension running in this process (there can be | |
24 // multiple because of process collapsing). | |
25 void SetActiveExtensions(const std::set<std::string>& extensions); | |
26 | |
16 // Crash Key Name Constants //////////////////////////////////////////////////// | 27 // Crash Key Name Constants //////////////////////////////////////////////////// |
17 | 28 |
18 // The URL of the active tab. | 29 // The URL of the active tab. |
19 extern const char kActiveURL[]; | 30 extern const char kActiveURL[]; |
20 | 31 |
32 // Installed extensions. kExtensionID should be formatted with an integer, | |
Lei Zhang
2013/09/06 21:15:22
nit: |kExtensionID|
Robert Sesek
2013/09/06 21:32:01
Done.
| |
33 // in the range [0, kExtensionIDMaxCount). | |
34 const size_t kExtensionIDMaxCount = 10; | |
35 extern const char kExtensionID[]; | |
36 // The total number of installed extensions, recorded in case it exceeds | |
37 // kExtensionIDMaxCount. Also used in chrome/app, but defined here to avoid | |
38 // a common->app dependency. | |
39 extern const char kNumExtensionsCount[]; | |
40 | |
21 // GPU information. | 41 // GPU information. |
22 #if !defined(OS_ANDROID) | 42 #if !defined(OS_ANDROID) |
23 extern const char kGPUVendorID[]; | 43 extern const char kGPUVendorID[]; |
24 extern const char kGPUDeviceID[]; | 44 extern const char kGPUDeviceID[]; |
25 #endif | 45 #endif |
26 extern const char kGPUDriverVersion[]; | 46 extern const char kGPUDriverVersion[]; |
27 extern const char kGPUPixelShaderVersion[]; | 47 extern const char kGPUPixelShaderVersion[]; |
28 extern const char kGPUVertexShaderVersion[]; | 48 extern const char kGPUVertexShaderVersion[]; |
29 #if defined(OS_LINUX) | 49 #if defined(OS_LINUX) |
30 extern const char kGPUVendor[]; | 50 extern const char kGPUVendor[]; |
(...skipping 25 matching lines...) Expand all Loading... | |
56 // deliberate crash. | 76 // deliberate crash. |
57 extern const char kZombie[]; | 77 extern const char kZombie[]; |
58 extern const char kZombieTrace[]; | 78 extern const char kZombieTrace[]; |
59 | 79 |
60 } // namespace mac | 80 } // namespace mac |
61 #endif | 81 #endif |
62 | 82 |
63 } // namespace crash_keys | 83 } // namespace crash_keys |
64 | 84 |
65 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 85 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
OLD | NEW |