summaryrefslogtreecommitdiff
path: root/chromium/chrome/common/crash_keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/common/crash_keys.h')
-rw-r--r--chromium/chrome/common/crash_keys.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/chromium/chrome/common/crash_keys.h b/chromium/chrome/common/crash_keys.h
new file mode 100644
index 00000000000..bcf172e645a
--- /dev/null
+++ b/chromium/chrome/common/crash_keys.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_CRASH_KEYS_H_
+#define CHROME_COMMON_CRASH_KEYS_H_
+
+#include <set>
+#include <string>
+
+#include "base/macros.h"
+#include "base/strings/string_piece.h"
+
+namespace base {
+class CommandLine;
+}
+
+namespace crash_keys {
+
+// Sets the kNumSwitches key and the set of keys named using kSwitchFormat based
+// on the given |command_line|.
+void SetCrashKeysFromCommandLine(const base::CommandLine& command_line);
+
+// Sets the list of "active" extensions in this process. We overload "active" to
+// mean different things depending on the process type:
+// - browser: all enabled extensions
+// - renderer: the unique set of extension ids from all content scripts
+// - extension: the id of each extension running in this process (there can be
+// multiple because of process collapsing).
+void SetActiveExtensions(const std::set<std::string>& extensions);
+
+} // namespace crash_keys
+
+#endif // CHROME_COMMON_CRASH_KEYS_H_