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

Unified Diff: media/base/decrypt_config.h

Issue 1422643002: Pass DecryptConfig parameters over IPC and use it in AVDA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed MediaCodec.CodecException that was added only at level 21 (Android L) Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/decoder_buffer.cc ('k') | media/base/decrypt_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/decrypt_config.h
diff --git a/media/base/decrypt_config.h b/media/base/decrypt_config.h
index febd0fe866968a244379ef2d875656426970e06c..fe50b9f40e339c89ab61ad373d9cb6abe91d054b 100644
--- a/media/base/decrypt_config.h
+++ b/media/base/decrypt_config.h
@@ -5,6 +5,7 @@
#ifndef MEDIA_BASE_DECRYPT_CONFIG_H_
#define MEDIA_BASE_DECRYPT_CONFIG_H_
+#include <iosfwd>
#include <string>
#include <vector>
@@ -56,6 +57,9 @@ class MEDIA_EXPORT DecryptConfig {
// Returns true if all fields in |config| match this config.
bool Matches(const DecryptConfig& config) const;
+ // Prints to std::ostream.
+ std::ostream& Print(std::ostream& os) const;
+
private:
const std::string key_id_;
@@ -71,4 +75,9 @@ class MEDIA_EXPORT DecryptConfig {
} // namespace media
+inline std::ostream& operator<<(std::ostream& os,
+ const media::DecryptConfig& obj) {
+ return obj.Print(os);
+}
+
#endif // MEDIA_BASE_DECRYPT_CONFIG_H_
« no previous file with comments | « media/base/decoder_buffer.cc ('k') | media/base/decrypt_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698