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> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/debug/crash_logging.h" | 12 #include "base/debug/crash_logging.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class CommandLine; | 15 class CommandLine; |
16 } | 16 } |
17 | 17 |
18 namespace crash_keys { | 18 namespace crash_keys { |
19 | 19 |
20 // Registers all of the potential crash keys that can be sent to the crash | 20 // Registers all of the potential crash keys that can be sent to the crash |
21 // reporting server. Returns the size of the union of all keys. | 21 // reporting server. Returns the size of the union of all keys. |
22 size_t RegisterChromeCrashKeys(); | 22 size_t RegisterChromeCrashKeys(); |
23 | 23 |
24 // Sets the GUID by which this crash reporting client can be identified. | 24 // Sets the ID (based on |client_guid|) by which this crash reporting client can |
25 void SetClientID(const std::string& client_id); | 25 // be identified. |
| 26 void SetClientIDFromGUID(const std::string& client_guid); |
26 | 27 |
27 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. | 28 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. |
28 void SetSwitchesFromCommandLine(const base::CommandLine* command_line); | 29 void SetSwitchesFromCommandLine(const base::CommandLine* command_line); |
29 | 30 |
30 // Sets the list of active experiment/variations info. | 31 // Sets the list of active experiment/variations info. |
31 void SetVariationsList(const std::vector<std::string>& variations); | 32 void SetVariationsList(const std::vector<std::string>& variations); |
32 | 33 |
33 // Sets the list of "active" extensions in this process. We overload "active" to | 34 // Sets the list of "active" extensions in this process. We overload "active" to |
34 // mean different things depending on the process type: | 35 // mean different things depending on the process type: |
35 // - browser: all enabled extensions | 36 // - browser: all enabled extensions |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // deliberate crash. | 139 // deliberate crash. |
139 extern const char kZombie[]; | 140 extern const char kZombie[]; |
140 extern const char kZombieTrace[]; | 141 extern const char kZombieTrace[]; |
141 | 142 |
142 } // namespace mac | 143 } // namespace mac |
143 #endif | 144 #endif |
144 | 145 |
145 } // namespace crash_keys | 146 } // namespace crash_keys |
146 | 147 |
147 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 148 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
OLD | NEW |