| 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 class CommandLine; | 15 class CommandLine; |
| 16 } |
| 15 | 17 |
| 16 namespace crash_keys { | 18 namespace crash_keys { |
| 17 | 19 |
| 18 // 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 |
| 19 // reporting server. Returns the size of the union of all keys. | 21 // reporting server. Returns the size of the union of all keys. |
| 20 size_t RegisterChromeCrashKeys(); | 22 size_t RegisterChromeCrashKeys(); |
| 21 | 23 |
| 22 // Sets the GUID by which this crash reporting client can be identified. | 24 // Sets the GUID by which this crash reporting client can be identified. |
| 23 void SetClientID(const std::string& client_id); | 25 void SetClientID(const std::string& client_id); |
| 24 | 26 |
| 25 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. | 27 // Sets the kSwitch and kNumSwitches keys based on the given |command_line|. |
| 26 void SetSwitchesFromCommandLine(const CommandLine* command_line); | 28 void SetSwitchesFromCommandLine(const base::CommandLine* command_line); |
| 27 | 29 |
| 28 // Sets the list of active experiment/variations info. | 30 // Sets the list of active experiment/variations info. |
| 29 void SetVariationsList(const std::vector<std::string>& variations); | 31 void SetVariationsList(const std::vector<std::string>& variations); |
| 30 | 32 |
| 31 // Sets the list of "active" extensions in this process. We overload "active" to | 33 // Sets the list of "active" extensions in this process. We overload "active" to |
| 32 // mean different things depending on the process type: | 34 // mean different things depending on the process type: |
| 33 // - browser: all enabled extensions | 35 // - browser: all enabled extensions |
| 34 // - renderer: the unique set of extension ids from all content scripts | 36 // - renderer: the unique set of extension ids from all content scripts |
| 35 // - extension: the id of each extension running in this process (there can be | 37 // - extension: the id of each extension running in this process (there can be |
| 36 // multiple because of process collapsing). | 38 // multiple because of process collapsing). |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // deliberate crash. | 138 // deliberate crash. |
| 137 extern const char kZombie[]; | 139 extern const char kZombie[]; |
| 138 extern const char kZombieTrace[]; | 140 extern const char kZombieTrace[]; |
| 139 | 141 |
| 140 } // namespace mac | 142 } // namespace mac |
| 141 #endif | 143 #endif |
| 142 | 144 |
| 143 } // namespace crash_keys | 145 } // namespace crash_keys |
| 144 | 146 |
| 145 #endif // CHROME_COMMON_CRASH_KEYS_H_ | 147 #endif // CHROME_COMMON_CRASH_KEYS_H_ |
| OLD | NEW |