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

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: 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/chrome_content_client.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 "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 #if !defined(OS_ANDROID)
23 extern const char kGPUVendorID[];
24 extern const char kGPUDeviceID[];
25 #endif
26 extern const char kGPUDriverVersion[];
27 extern const char kGPUPixelShaderVersion[];
28 extern const char kGPUVertexShaderVersion[];
29 #if defined(OS_LINUX)
30 extern const char kGPUVendor[];
31 extern const char kGPURenderer[];
32 #elif defined(OS_MACOSX)
33 extern const char kGPUGLVersion[];
34 #endif
35
21 #if defined(OS_MACOSX) 36 #if defined(OS_MACOSX)
22 namespace mac { 37 namespace mac {
23 38
24 // Used to report the first Cocoa/Mac NSException and its backtrace. 39 // Used to report the first Cocoa/Mac NSException and its backtrace.
25 extern const char kFirstNSException[]; 40 extern const char kFirstNSException[];
26 extern const char kFirstNSExceptionTrace[]; 41 extern const char kFirstNSExceptionTrace[];
27 42
28 // Used to report the last Cocoa/Mac NSException and its backtrace. 43 // Used to report the last Cocoa/Mac NSException and its backtrace.
29 extern const char kLastNSException[]; 44 extern const char kLastNSException[];
30 extern const char kLastNSExceptionTrace[]; 45 extern const char kLastNSExceptionTrace[];
(...skipping 10 matching lines...) Expand all
41 // deliberate crash. 56 // deliberate crash.
42 extern const char kZombie[]; 57 extern const char kZombie[];
43 extern const char kZombieTrace[]; 58 extern const char kZombieTrace[];
44 59
45 } // namespace mac 60 } // namespace mac
46 #endif 61 #endif
47 62
48 } // namespace crash_keys 63 } // namespace crash_keys
49 64
50 #endif // CHROME_COMMON_CRASH_KEYS_H_ 65 #endif // CHROME_COMMON_CRASH_KEYS_H_
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698