OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "media/base/crash_keys.h" |
| 6 |
| 7 #include <vector> |
| 8 |
| 9 #include "base/debug/crash_logging.h" |
| 10 #include "base/logging.h" |
| 11 #include "build/build_config.h" |
| 12 #include "components/crash/core/common/crash_keys.h" |
| 13 |
| 14 namespace crash_keys { |
| 15 |
| 16 #if defined(OS_WIN) |
| 17 const char kHungAudioThreadDetails[] = "hung-audio-thread-details"; |
| 18 #endif |
| 19 |
| 20 const char kZeroEncodeDetails[] = "zero-encode-details"; |
| 21 |
| 22 void AppendMediaCrashKeys(std::vector<base::debug::CrashKey>* keys) { |
| 23 DCHECK(keys); |
| 24 |
| 25 const std::vector<base::debug::CrashKey> media_keys = { |
| 26 #if defined(OS_WIN) |
| 27 {kHungAudioThreadDetails, kSmallSize}, |
| 28 #endif |
| 29 {kZeroEncodeDetails, kSmallSize}, |
| 30 }; |
| 31 |
| 32 keys->insert(keys->end(), media_keys.begin(), media_keys.end()); |
| 33 } |
| 34 |
| 35 } // namespace crash_keys |
OLD | NEW |