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

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

Issue 23021021: Set the GPU info using the crash key system instead of platform-specific mechanisms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' 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
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 "base/debug/crash_logging.h" 8 #include "base/debug/crash_logging.h"
9 9
10 namespace crash_keys { 10 namespace crash_keys {
11 11
12 // Registers all of the potential crash keys that can be sent to the crash 12 // 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. 13 // reporting server. Returns the size of the union of all keys.
14 size_t RegisterChromeCrashKeys(); 14 size_t RegisterChromeCrashKeys();
15 15
16 // Crash Key Name Constants //////////////////////////////////////////////////// 16 // Crash Key Name Constants ////////////////////////////////////////////////////
17 17
18 // The URL of the active tab. 18 // The URL of the active tab.
19 extern const char kActiveURL[]; 19 extern const char kActiveURL[];
20 20
21 // GPU information.
22 extern const char kGPUVendorID[];
Lei Zhang 2013/08/26 21:41:01 It would be nice if these matched the #ifdefs in c
Robert Sesek 2013/08/27 15:34:52 Done.
23 extern const char kGPUDeviceID[];
24 extern const char kGPUDriverVersion[];
25 extern const char kGPUPixelShaderVersion[];
26 extern const char kGPUVertexShaderVersion[];
27 extern const char kGPUVendor[];
28 extern const char kGPURenderer[];
29 extern const char kGPUGLVersion[];
30
21 #if defined(OS_MACOSX) 31 #if defined(OS_MACOSX)
22 namespace mac { 32 namespace mac {
23 33
24 // Used to report the first Cocoa/Mac NSException and its backtrace. 34 // Used to report the first Cocoa/Mac NSException and its backtrace.
25 extern const char kFirstNSException[]; 35 extern const char kFirstNSException[];
26 extern const char kFirstNSExceptionTrace[]; 36 extern const char kFirstNSExceptionTrace[];
27 37
28 // Used to report the last Cocoa/Mac NSException and its backtrace. 38 // Used to report the last Cocoa/Mac NSException and its backtrace.
29 extern const char kLastNSException[]; 39 extern const char kLastNSException[];
30 extern const char kLastNSExceptionTrace[]; 40 extern const char kLastNSExceptionTrace[];
(...skipping 10 matching lines...) Expand all
41 // deliberate crash. 51 // deliberate crash.
42 extern const char kZombie[]; 52 extern const char kZombie[];
43 extern const char kZombieTrace[]; 53 extern const char kZombieTrace[];
44 54
45 } // namespace mac 55 } // namespace mac
46 #endif 56 #endif
47 57
48 } // namespace crash_keys 58 } // namespace crash_keys
49 59
50 #endif // CHROME_COMMON_CRASH_KEYS_H_ 60 #endif // CHROME_COMMON_CRASH_KEYS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698