| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 constexpr char kHungRendererOutstandingEventType[] = | 51 constexpr char kHungRendererOutstandingEventType[] = |
| 52 "hung-outstanding-event-type"; | 52 "hung-outstanding-event-type"; |
| 53 constexpr char kHungRendererLastEventType[] = "hung-last-event-type"; | 53 constexpr char kHungRendererLastEventType[] = "hung-last-event-type"; |
| 54 constexpr char kHungRendererReason[] = "hung-reason"; | 54 constexpr char kHungRendererReason[] = "hung-reason"; |
| 55 constexpr char kInputEventFilterSendFailure[] = | 55 constexpr char kInputEventFilterSendFailure[] = |
| 56 "input-event-filter-send-failure"; | 56 "input-event-filter-send-failure"; |
| 57 | 57 |
| 58 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; | 58 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; |
| 59 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; | 59 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; |
| 60 | 60 |
| 61 constexpr char kEnrolledToDomain[] = "enrolled-to-domain"; |
| 62 |
| 61 constexpr char kViewCount[] = "view-count"; | 63 constexpr char kViewCount[] = "view-count"; |
| 62 constexpr char kZeroEncodeDetails[] = "zero-encode-details"; | 64 constexpr char kZeroEncodeDetails[] = "zero-encode-details"; |
| 63 | 65 |
| 64 // The user's printers, up to kPrinterInfoCount. Should be set with | 66 // The user's printers, up to kPrinterInfoCount. Should be set with |
| 65 // ScopedPrinterInfo. | 67 // ScopedPrinterInfo. |
| 66 constexpr size_t kPrinterInfoCount = 4; | 68 constexpr size_t kPrinterInfoCount = 4; |
| 67 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS; | 69 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS; |
| 68 | 70 |
| 69 using namespace crash_keys; | 71 using namespace crash_keys; |
| 70 | 72 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 96 {kShutdownType, kSmallSize}, | 98 {kShutdownType, kSmallSize}, |
| 97 {kGPUVendorID, kSmallSize}, | 99 {kGPUVendorID, kSmallSize}, |
| 98 {kGPUDeviceID, kSmallSize}, | 100 {kGPUDeviceID, kSmallSize}, |
| 99 {kGPUDriverVersion, kSmallSize}, | 101 {kGPUDriverVersion, kSmallSize}, |
| 100 {kGPUPixelShaderVersion, kSmallSize}, | 102 {kGPUPixelShaderVersion, kSmallSize}, |
| 101 {kGPUVertexShaderVersion, kSmallSize}, | 103 {kGPUVertexShaderVersion, kSmallSize}, |
| 102 | 104 |
| 103 // browser/: | 105 // browser/: |
| 104 {kThirdPartyModulesLoaded, kSmallSize}, | 106 {kThirdPartyModulesLoaded, kSmallSize}, |
| 105 {kThirdPartyModulesNotLoaded, kSmallSize}, | 107 {kThirdPartyModulesNotLoaded, kSmallSize}, |
| 108 {kEnrolledToDomain, kSmallSize}, |
| 106 | 109 |
| 107 // content/: | 110 // content/: |
| 108 {"bad_message_reason", kSmallSize}, | 111 {"bad_message_reason", kSmallSize}, |
| 109 {"discardable-memory-allocated", kSmallSize}, | 112 {"discardable-memory-allocated", kSmallSize}, |
| 110 {"discardable-memory-free", kSmallSize}, | 113 {"discardable-memory-free", kSmallSize}, |
| 111 {kFontKeyName, kSmallSize}, | 114 {kFontKeyName, kSmallSize}, |
| 112 {"ppapi_path", kMediumSize}, | 115 {"ppapi_path", kMediumSize}, |
| 113 {"subresource_url", kLargeSize}, | 116 {"subresource_url", kLargeSize}, |
| 114 {"total-discardable-memory-allocated", kSmallSize}, | 117 {"total-discardable-memory-allocated", kSmallSize}, |
| 115 {kBug464926CrashKey, kSmallSize}, | 118 {kBug464926CrashKey, kSmallSize}, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 bool ChromeCrashReporterClient::GetCollectStatsInSample() { | 401 bool ChromeCrashReporterClient::GetCollectStatsInSample() { |
| 399 return install_static::GetCollectStatsInSample(); | 402 return install_static::GetCollectStatsInSample(); |
| 400 } | 403 } |
| 401 | 404 |
| 402 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 405 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
| 403 const std::string& process_type) { | 406 const std::string& process_type) { |
| 404 return process_type == install_static::kRendererProcess || | 407 return process_type == install_static::kRendererProcess || |
| 405 process_type == install_static::kPpapiPluginProcess || | 408 process_type == install_static::kPpapiPluginProcess || |
| 406 process_type == install_static::kGpuProcess; | 409 process_type == install_static::kGpuProcess; |
| 407 } | 410 } |
| OLD | NEW |