| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // TODO(ananta/scottmg) | 5 // TODO(ananta/scottmg) |
| 6 // Add test coverage for Crashpad. | 6 // Add test coverage for Crashpad. |
| 7 #include "chrome/app/chrome_crash_reporter_client_win.h" | 7 #include "chrome/app/chrome_crash_reporter_client_win.h" |
| 8 | 8 |
| 9 #include <assert.h> | 9 #include <assert.h> |
| 10 #include <windows.h> | 10 #include <windows.h> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 constexpr char kActiveURL[] = "url-chunk"; | 33 constexpr char kActiveURL[] = "url-chunk"; |
| 34 constexpr char kFontKeyName[] = "font_key_name"; | 34 constexpr char kFontKeyName[] = "font_key_name"; |
| 35 | 35 |
| 36 // Installed extensions. |kExtensionID| should be formatted with an integer, | 36 // Installed extensions. |kExtensionID| should be formatted with an integer, |
| 37 // in the range [0, kExtensionIDMaxCount). | 37 // in the range [0, kExtensionIDMaxCount). |
| 38 constexpr char kNumExtensionsCount[] = "num-extensions"; | 38 constexpr char kNumExtensionsCount[] = "num-extensions"; |
| 39 constexpr size_t kExtensionIDMaxCount = 10; | 39 constexpr size_t kExtensionIDMaxCount = 10; |
| 40 constexpr char kExtensionID[] = "extension-%" PRIuS; | 40 constexpr char kExtensionID[] = "extension-%" PRIuS; |
| 41 | 41 |
| 42 constexpr char kShutdownType[] = "shutdown-type"; | 42 constexpr char kShutdownType[] = "shutdown-type"; |
| 43 constexpr char kBrowserUnpinTrace[] = "browser-unpin-trace"; |
| 43 | 44 |
| 44 constexpr char kGPUVendorID[] = "gpu-venid"; | 45 constexpr char kGPUVendorID[] = "gpu-venid"; |
| 45 constexpr char kGPUDeviceID[] = "gpu-devid"; | 46 constexpr char kGPUDeviceID[] = "gpu-devid"; |
| 46 constexpr char kGPUDriverVersion[] = "gpu-driver"; | 47 constexpr char kGPUDriverVersion[] = "gpu-driver"; |
| 47 constexpr char kGPUPixelShaderVersion[] = "gpu-psver"; | 48 constexpr char kGPUPixelShaderVersion[] = "gpu-psver"; |
| 48 constexpr char kGPUVertexShaderVersion[] = "gpu-vsver"; | 49 constexpr char kGPUVertexShaderVersion[] = "gpu-vsver"; |
| 49 | 50 |
| 50 constexpr char kHungAudioThreadDetails[] = "hung-audio-thread-details"; | 51 constexpr char kHungAudioThreadDetails[] = "hung-audio-thread-details"; |
| 51 constexpr char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; | 52 constexpr char kHungRendererOutstandingAckCount[] = "hung-outstanding-acks"; |
| 52 constexpr char kHungRendererOutstandingEventType[] = | 53 constexpr char kHungRendererOutstandingEventType[] = |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // //chrome/common/crash_keys.cc::RegisterChromeCrashKeys() and | 91 // //chrome/common/crash_keys.cc::RegisterChromeCrashKeys() and |
| 91 // //blimp/engine/app/blimp_engine_crash_keys.cc | 92 // //blimp/engine/app/blimp_engine_crash_keys.cc |
| 92 constexpr base::debug::CrashKey fixed_keys[] = { | 93 constexpr base::debug::CrashKey fixed_keys[] = { |
| 93 {kMetricsClientId, kSmallSize}, | 94 {kMetricsClientId, kSmallSize}, |
| 94 {kChannel, kSmallSize}, | 95 {kChannel, kSmallSize}, |
| 95 {kActiveURL, kLargeSize}, | 96 {kActiveURL, kLargeSize}, |
| 96 {kNumVariations, kSmallSize}, | 97 {kNumVariations, kSmallSize}, |
| 97 {kVariations, kLargeSize}, | 98 {kVariations, kLargeSize}, |
| 98 {kNumExtensionsCount, kSmallSize}, | 99 {kNumExtensionsCount, kSmallSize}, |
| 99 {kShutdownType, kSmallSize}, | 100 {kShutdownType, kSmallSize}, |
| 101 {kBrowserUnpinTrace, kMediumSize}, |
| 100 {kGPUVendorID, kSmallSize}, | 102 {kGPUVendorID, kSmallSize}, |
| 101 {kGPUDeviceID, kSmallSize}, | 103 {kGPUDeviceID, kSmallSize}, |
| 102 {kGPUDriverVersion, kSmallSize}, | 104 {kGPUDriverVersion, kSmallSize}, |
| 103 {kGPUPixelShaderVersion, kSmallSize}, | 105 {kGPUPixelShaderVersion, kSmallSize}, |
| 104 {kGPUVertexShaderVersion, kSmallSize}, | 106 {kGPUVertexShaderVersion, kSmallSize}, |
| 105 | 107 |
| 106 // browser/: | 108 // browser/: |
| 107 {kThirdPartyModulesLoaded, kSmallSize}, | 109 {kThirdPartyModulesLoaded, kSmallSize}, |
| 108 {kThirdPartyModulesNotLoaded, kSmallSize}, | 110 {kThirdPartyModulesNotLoaded, kSmallSize}, |
| 109 {kEnrolledToDomain, kSmallSize}, | 111 {kEnrolledToDomain, kSmallSize}, |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 bool ChromeCrashReporterClient::GetCollectStatsInSample() { | 404 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
| 403 return install_static::GetCollectStatsInSample(); | 405 return install_static::GetCollectStatsInSample(); |
| 404 } | 406 } |
| 405 | 407 |
| 406 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 408 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 407 const std::string& process_type) { | 409 const std::string& process_type) { |
| 408 // This is not used by Crashpad (at least on Windows). | 410 // This is not used by Crashpad (at least on Windows). |
| 409 NOTREACHED(); | 411 NOTREACHED(); |
| 410 return true; | 412 return true; |
| 411 } | 413 } |
| OLD | NEW |