Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: media/base/cdm_key_information.h

Issue 2663483003: media: Add log in CdmSessionAdapter (Closed)
Patch Set: media: Add log in CdmSessionAdapter Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/base/cdm_key_information.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BASE_CDM_KEY_INFORMATION_H_ 5 #ifndef MEDIA_BASE_CDM_KEY_INFORMATION_H_
6 #define MEDIA_BASE_CDM_KEY_INFORMATION_H_ 6 #define MEDIA_BASE_CDM_KEY_INFORMATION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 25 matching lines...) Expand all
36 CdmKeyInformation(const std::string& key_id, 36 CdmKeyInformation(const std::string& key_id,
37 KeyStatus status, 37 KeyStatus status,
38 uint32_t system_code); 38 uint32_t system_code);
39 CdmKeyInformation(const uint8_t* key_id_data, 39 CdmKeyInformation(const uint8_t* key_id_data,
40 size_t key_id_length, 40 size_t key_id_length,
41 KeyStatus status, 41 KeyStatus status,
42 uint32_t system_code); 42 uint32_t system_code);
43 CdmKeyInformation(const CdmKeyInformation& other); 43 CdmKeyInformation(const CdmKeyInformation& other);
44 ~CdmKeyInformation(); 44 ~CdmKeyInformation();
45 45
46 static std::string KeyStatusToString(KeyStatus key_status);
47
46 std::vector<uint8_t> key_id; 48 std::vector<uint8_t> key_id;
47 KeyStatus status; 49 KeyStatus status;
48 uint32_t system_code; 50 uint32_t system_code;
49 }; 51 };
50 52
53 // For logging use only.
54 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os,
55 const CdmKeyInformation& info);
56
51 } // namespace media 57 } // namespace media
52 58
53 #endif // MEDIA_BASE_CDM_KEY_INFORMATION_H_ 59 #endif // MEDIA_BASE_CDM_KEY_INFORMATION_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/cdm_key_information.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698