summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2013-05-29 14:20:52 -0700
committerAndreas Huber <andih@google.com>2013-05-31 15:31:56 -0700
commitb7319a7eb0a06ef4fd3a0c9157ee63e637ad7aa1 (patch)
tree6dc90cde609f708f45ae08af2bdc5f9cd2df4bb3 /media/libstagefright/HTTPBase.cpp
parent41688da226e91c97ea3b2fe096044e1e5b0520bc (diff)
downloadframeworks_av-b7319a7eb0a06ef4fd3a0c9157ee63e637ad7aa1.zip
frameworks_av-b7319a7eb0a06ef4fd3a0c9157ee63e637ad7aa1.tar.gz
frameworks_av-b7319a7eb0a06ef4fd3a0c9157ee63e637ad7aa1.tar.bz2
Update HTTP proxy configuration for all media playback inside stagefright.
Change-Id: Ie0dd00045aba668d8b49da73224e7a7c9c04f69b related-to-bug: 8873723 (cherry picked from commit 2704965b8a1ff3b7450ff58ccecf86d8ec688c40)
Diffstat (limited to 'media/libstagefright/HTTPBase.cpp')
-rw-r--r--media/libstagefright/HTTPBase.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/media/libstagefright/HTTPBase.cpp b/media/libstagefright/HTTPBase.cpp
index 40bfc55..d2cc6c2 100644
--- a/media/libstagefright/HTTPBase.cpp
+++ b/media/libstagefright/HTTPBase.cpp
@@ -58,6 +58,16 @@ sp<HTTPBase> HTTPBase::Create(uint32_t flags) {
}
}
+// static
+status_t HTTPBase::UpdateProxyConfig(
+ const char *host, int32_t port, const char *exclusionList) {
+#if CHROMIUM_AVAILABLE
+ return UpdateChromiumHTTPDataSourceProxyConfig(host, port, exclusionList);
+#else
+ return INVALID_OPERATION;
+#endif
+}
+
void HTTPBase::addBandwidthMeasurement(
size_t numBytes, int64_t delayUs) {
Mutex::Autolock autoLock(mLock);