| 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| which may either be a full GUID or a |
| 25 void SetClientID(const std::string& client_id); | 25 // GUID that was already stripped from its dashes -- in either cases this method |
| 26 // will strip remaining dashes before setting the crash key) by which this crash |
| 27 // reporting client can be identified. |
| 28 void SetCrashClientIdFromGUID(const std::string& client_guid); |
| 26 | 29 |
| 27 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. | 30 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. |
| 28 void SetSwitchesFromCommandLine(const base::CommandLine* command_line); | 31 void SetSwitchesFromCommandLine(const base::CommandLine* command_line); |
| 29 | 32 |
| 30 // Sets the list of active experiment/variations info. | 33 // Sets the list of active experiment/variations info. |
| 31 void SetVariationsList(const std::vector<std::string>& variations); | 34 void SetVariationsList(const std::vector<std::string>& variations); |
| 32 | 35 |
| 33 // Sets the list of "active" extensions in this process. We overload "active" to | 36 // Sets the list of "active" extensions in this process. We overload "active" to |
| 34 // mean different things depending on the process type: | 37 // mean different things depending on the process type: |
| 35 // - browser: all enabled extensions | 38 // - browser: all enabled extensions |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // deliberate crash. | 141 // deliberate crash. |
| 139 extern const char kZombie[]; | 142 extern const char kZombie[]; |
| 140 extern const char kZombieTrace[]; | 143 extern const char kZombieTrace[]; |
| 141 | 144 |
| 142 } // namespace mac | 145 } // namespace mac |
| 143 #endif | 146 #endif |
| 144 | 147 |
| 145 } // namespace crash_keys | 148 } // namespace crash_keys |
| 146 | 149 |
| 147 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 150 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
| OLD | NEW |