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

Unified Diff: media/base/demuxer.h

Issue 23072043: Change NeedKeyCB to use std::vector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix seek_tester, demuxer_bench, and player_x11 Created 7 years, 4 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 | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/media_keys.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer.h
diff --git a/media/base/demuxer.h b/media/base/demuxer.h
index 81ac33b06526ee5045855125f471ae1f2cdd4a0d..853a21a2a7557de19768dc430e19613560c52dee 100644
--- a/media/base/demuxer.h
+++ b/media/base/demuxer.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_DEMUXER_H_
#define MEDIA_BASE_DEMUXER_H_
+#include <vector>
+
#include "base/time/time.h"
#include "media/base/data_source.h"
#include "media/base/demuxer_stream.h"
@@ -29,6 +31,12 @@ class MEDIA_EXPORT DemuxerHost : public DataSourceHost {
class MEDIA_EXPORT Demuxer {
public:
+ // A new potentially encrypted stream has been parsed.
+ // First parameter - The type of initialization data.
+ // Second parameter - The initialization data associated with the stream.
+ typedef base::Callback<void(const std::string& type,
+ const std::vector<uint8>& init_data)> NeedKeyCB;
+
Demuxer();
virtual ~Demuxer();
« no previous file with comments | « content/renderer/media/webmediaplayer_impl.cc ('k') | media/base/media_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698