summaryrefslogtreecommitdiffstats
path: root/chrome/common/crash_keys.h
diff options
context:
space:
mode:
authorrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-07 02:53:45 +0000
committerrsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-07 02:53:45 +0000
commitf6431be8495f8846fd850c00e806b6198e23988b (patch)
treeae4e039b5c2758bfb64fcb0f8b1bb016ba4c3bb4 /chrome/common/crash_keys.h
parent54736e3fbf8cbf13b34dfcb6c5238bf4c6995224 (diff)
downloadchromium_src-f6431be8495f8846fd850c00e806b6198e23988b.zip
chromium_src-f6431be8495f8846fd850c00e806b6198e23988b.tar.gz
chromium_src-f6431be8495f8846fd850c00e806b6198e23988b.tar.bz2
Set active extension IDs for crash reports using the crash key logging system.
BUG=77656 Review URL: https://chromiumcodereview.appspot.com/23471007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221867 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/crash_keys.h')
-rw-r--r--chrome/common/crash_keys.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/common/crash_keys.h b/chrome/common/crash_keys.h
index 45bb677..0054011 100644
--- a/chrome/common/crash_keys.h
+++ b/chrome/common/crash_keys.h
@@ -5,6 +5,9 @@
#ifndef CHROME_COMMON_CRASH_KEYS_H_
#define CHROME_COMMON_CRASH_KEYS_H_
+#include <set>
+#include <string>
+
#include "base/debug/crash_logging.h"
namespace crash_keys {
@@ -13,11 +16,28 @@ namespace crash_keys {
// reporting server. Returns the size of the union of all keys.
size_t RegisterChromeCrashKeys();
+// 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);
+
// Crash Key Name Constants ////////////////////////////////////////////////////
// The URL of the active tab.
extern const char kActiveURL[];
+// Installed extensions. |kExtensionID| should be formatted with an integer,
+// in the range [0, kExtensionIDMaxCount).
+const size_t kExtensionIDMaxCount = 10;
+extern const char kExtensionID[];
+// The total number of installed extensions, recorded in case it exceeds
+// kExtensionIDMaxCount. Also used in chrome/app, but defined here to avoid
+// a common->app dependency.
+extern const char kNumExtensionsCount[];
+
// GPU information.
#if !defined(OS_ANDROID)
extern const char kGPUVendorID[];