summaryrefslogtreecommitdiffstats
path: root/include/media/stagefright/DataSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-27 16:49:05 -0800
committerAndreas Huber <andih@google.com>2010-01-28 13:04:28 -0800
commit5561ccf4a8db88a2e44eac1b3ed13b4ff53a7f20 (patch)
tree0a98e19ea4a0721f2cc0e763203a69565eea6e2e /include/media/stagefright/DataSource.h
parent2db8455d8f4468a637109d31f319ce02d9d743ec (diff)
downloadframeworks_av-5561ccf4a8db88a2e44eac1b3ed13b4ff53a7f20.zip
frameworks_av-5561ccf4a8db88a2e44eac1b3ed13b4ff53a7f20.tar.gz
frameworks_av-5561ccf4a8db88a2e44eac1b3ed13b4ff53a7f20.tar.bz2
Support the specification of additional HTTP headers in the creation of a DataSource.
related-to-bug: 2393577
Diffstat (limited to 'include/media/stagefright/DataSource.h')
-rw-r--r--include/media/stagefright/DataSource.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/media/stagefright/DataSource.h b/include/media/stagefright/DataSource.h
index 0c0ace0..913da47 100644
--- a/include/media/stagefright/DataSource.h
+++ b/include/media/stagefright/DataSource.h
@@ -21,6 +21,7 @@
#include <sys/types.h>
#include <utils/Errors.h>
+#include <utils/KeyedVector.h>
#include <utils/List.h>
#include <utils/RefBase.h>
#include <utils/threads.h>
@@ -35,7 +36,9 @@ public:
kWantsPrefetching = 1,
};
- static sp<DataSource> CreateFromURI(const char *uri);
+ static sp<DataSource> CreateFromURI(
+ const char *uri,
+ const KeyedVector<String8, String8> *headers = NULL);
DataSource() {}