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