Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Side by Side Diff: chrome/common/crash_keys.h

Issue 23471007: Set active extension IDs for crash reports using the crash key logging system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/child_process_logging_win.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
9 #include <string>
10
8 #include "base/debug/crash_logging.h" 11 #include "base/debug/crash_logging.h"
9 12
10 namespace crash_keys { 13 namespace crash_keys {
11 14
12 // Registers all of the potential crash keys that can be sent to the crash 15 // Registers all of the potential crash keys that can be sent to the crash
13 // reporting server. Returns the size of the union of all keys. 16 // reporting server. Returns the size of the union of all keys.
14 size_t RegisterChromeCrashKeys(); 17 size_t RegisterChromeCrashKeys();
15 18
19 // Sets the list of "active" extensions in this process. We overload "active" to
20 // mean different things depending on the process type:
21 // - browser: all enabled extensions
22 // - renderer: the unique set of extension ids from all content scripts
23 // - extension: the id of each extension running in this process (there can be
24 // multiple because of process collapsing).
25 void SetActiveExtensions(const std::set<std::string>& extensions);
26
16 // Crash Key Name Constants //////////////////////////////////////////////////// 27 // Crash Key Name Constants ////////////////////////////////////////////////////
17 28
18 // The URL of the active tab. 29 // The URL of the active tab.
19 extern const char kActiveURL[]; 30 extern const char kActiveURL[];
20 31
32 // Installed extensions. |kExtensionID| should be formatted with an integer,
33 // in the range [0, kExtensionIDMaxCount).
34 const size_t kExtensionIDMaxCount = 10;
35 extern const char kExtensionID[];
36 // The total number of installed extensions, recorded in case it exceeds
37 // kExtensionIDMaxCount. Also used in chrome/app, but defined here to avoid
38 // a common->app dependency.
39 extern const char kNumExtensionsCount[];
40
21 // GPU information. 41 // GPU information.
22 #if !defined(OS_ANDROID) 42 #if !defined(OS_ANDROID)
23 extern const char kGPUVendorID[]; 43 extern const char kGPUVendorID[];
24 extern const char kGPUDeviceID[]; 44 extern const char kGPUDeviceID[];
25 #endif 45 #endif
26 extern const char kGPUDriverVersion[]; 46 extern const char kGPUDriverVersion[];
27 extern const char kGPUPixelShaderVersion[]; 47 extern const char kGPUPixelShaderVersion[];
28 extern const char kGPUVertexShaderVersion[]; 48 extern const char kGPUVertexShaderVersion[];
29 #if defined(OS_LINUX) 49 #if defined(OS_LINUX)
30 extern const char kGPUVendor[]; 50 extern const char kGPUVendor[];
(...skipping 25 matching lines...) Expand all
56 // deliberate crash. 76 // deliberate crash.
57 extern const char kZombie[]; 77 extern const char kZombie[];
58 extern const char kZombieTrace[]; 78 extern const char kZombieTrace[];
59 79
60 } // namespace mac 80 } // namespace mac
61 #endif 81 #endif
62 82
63 } // namespace crash_keys 83 } // namespace crash_keys
64 84
65 #endif // CHROME_COMMON_CRASH_KEYS_H_ 85 #endif // CHROME_COMMON_CRASH_KEYS_H_
OLDNEW
« no previous file with comments | « chrome/common/child_process_logging_win.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698