OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ | 5 #ifndef MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ |
6 #define MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ | 6 #define MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/time/time.h" |
10 #include "media/base/cdm_promise.h" | 11 #include "media/base/cdm_promise.h" |
11 #include "media/blink/media_blink_export.h" | 12 #include "media/blink/media_blink_export.h" |
12 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" | 13 #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h" |
13 | 14 |
14 namespace media { | 15 namespace media { |
15 | 16 |
16 // A superset of media::ContentDecryptionModule::Exception for UMA reporting. | 17 // A superset of media::ContentDecryptionModule::Exception for UMA reporting. |
17 // These values should never be changed as it will affect existing reporting, | 18 // These values should never be changed as it will affect existing reporting, |
18 // and must match the values for CdmPromiseResult in | 19 // and must match the values for CdmPromiseResult in |
19 // tools/metrics/histograms/histograms.xml. | 20 // tools/metrics/histograms/histograms.xml. |
(...skipping 14 matching lines...) Expand all Loading... |
34 | 35 |
35 MEDIA_BLINK_EXPORT blink::WebContentDecryptionModuleException | 36 MEDIA_BLINK_EXPORT blink::WebContentDecryptionModuleException |
36 ConvertCdmException(CdmPromise::Exception exception_code); | 37 ConvertCdmException(CdmPromise::Exception exception_code); |
37 | 38 |
38 MEDIA_BLINK_EXPORT void ReportCdmResultUMA(const std::string& uma_name, | 39 MEDIA_BLINK_EXPORT void ReportCdmResultUMA(const std::string& uma_name, |
39 CdmResultForUMA result); | 40 CdmResultForUMA result); |
40 | 41 |
41 } // namespace media | 42 } // namespace media |
42 | 43 |
43 #endif // MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ | 44 #endif // MEDIA_BLINK_CDM_RESULT_PROMISE_HELPER_H_ |
OLD | NEW |