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

Unified Diff: media/base/stream_parser.h

Issue 11313016: Add "type" in GenerateKeyRequest() and OnNeedKey(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix the DCHECK where init_data_type_ is set but NeedKey from decoder passes empty "type". Created 8 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/mock_filters.cc ('k') | media/crypto/aes_decryptor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser.h
diff --git a/media/base/stream_parser.h b/media/base/stream_parser.h
index 64a8c4978128b609be36cdfaf4de984007a72b1b..d4eb335ff45675e24c9994c99d531769b925f9e4 100644
--- a/media/base/stream_parser.h
+++ b/media/base/stream_parser.h
@@ -6,6 +6,7 @@
#define MEDIA_BASE_STREAM_PARSER_H_
#include <deque>
+#include <string>
#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
@@ -58,12 +59,15 @@ class MEDIA_EXPORT StreamParser {
typedef base::Callback<void(base::TimeDelta)> NewMediaSegmentCB;
// A new potentially encrypted stream has been parsed.
- // First parameter - The initialization data associated with the stream.
- // Second parameter - Number of bytes of the initialization data.
+ // First parameter - The type of the initialization data associated with the
+ // stream.
+ // Second parameter - The initialization data associated with the stream.
+ // Third parameter - Number of bytes of the initialization data.
// Return value - True indicates that the initialization data is accepted.
// False if something was wrong with the initialization data
// and a parsing error should be signalled.
- typedef base::Callback<bool(scoped_array<uint8>, int)> NeedKeyCB;
+ typedef base::Callback<bool(const std::string&,
+ scoped_array<uint8>, int)> NeedKeyCB;
// Initialize the parser with necessary callbacks. Must be called before any
// data is passed to Parse(). |init_cb| will be called once enough data has
« no previous file with comments | « media/base/mock_filters.cc ('k') | media/crypto/aes_decryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698