summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-02-24 14:42:48 -0800
committerAndreas Huber <andih@google.com>2011-02-24 14:42:48 -0800
commit7314fa17093d514199fedcb55ac41136a1b31cb3 (patch)
tree87378f5d573dd94da744bdecf42f011dad05abea /media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
parent9287abf2657bee9464965c37bdaa866d023c9d89 (diff)
downloadframeworks_av-7314fa17093d514199fedcb55ac41136a1b31cb3.zip
frameworks_av-7314fa17093d514199fedcb55ac41136a1b31cb3.tar.gz
frameworks_av-7314fa17093d514199fedcb55ac41136a1b31cb3.tar.bz2
Suppress the logging of URLs when in incognito mode.
Change-Id: Ib951b495eae15669e160ef54686eab0eeb9b366a related-to-bug: 3336575
Diffstat (limited to 'media/libmediaplayerservice/nuplayer/HTTPLiveSource.h')
-rw-r--r--media/libmediaplayerservice/nuplayer/HTTPLiveSource.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
index f3f539a..a8ce7f4 100644
--- a/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
+++ b/media/libmediaplayerservice/nuplayer/HTTPLiveSource.h
@@ -27,7 +27,11 @@ struct ATSParser;
struct LiveSession;
struct NuPlayer::HTTPLiveSource : public NuPlayer::Source {
- HTTPLiveSource(const char *url);
+ enum Flags {
+ // Don't log any URLs.
+ kFlagIncognito = 1,
+ };
+ HTTPLiveSource(const char *url, uint32_t flags = 0);
virtual void start();
@@ -46,6 +50,7 @@ protected:
private:
AString mURL;
+ uint32_t mFlags;
bool mEOS;
off64_t mOffset;
sp<ALooper> mLiveLooper;