diff options
author | Ashish Sharma <ashishsharma@google.com> | 2011-07-07 17:57:05 -0700 |
---|---|---|
committer | Ashish Sharma <ashishsharma@google.com> | 2011-08-05 12:58:14 -0700 |
commit | a23456b306f35b9ecf973bf5818ca39295e9e029 (patch) | |
tree | 306cdb8f5f84adc84f2ecf7e5a34c80d988b9818 /media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp | |
parent | ea7c2fea6a031d37270cb5b22b432729626b266d (diff) | |
download | frameworks_av-a23456b306f35b9ecf973bf5818ca39295e9e029.zip frameworks_av-a23456b306f35b9ecf973bf5818ca39295e9e029.tar.gz frameworks_av-a23456b306f35b9ecf973bf5818ca39295e9e029.tar.bz2 |
Network traffic accounting for chromium stack support in mediaserver.
- Atribute network activity to uid calling the mediaplayer
- Enables logging of chromium network stack in logcat
Change-Id: I2d28c8392248a056b3cee305dd4d4475ebba4337
Diffstat (limited to 'media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp')
-rw-r--r-- | media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp index 887fe7c..180460b 100644 --- a/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp +++ b/media/libstagefright/chromium_http/ChromiumHTTPDataSource.cpp @@ -61,6 +61,12 @@ status_t ChromiumHTTPDataSource::connect( off64_t offset) { Mutex::Autolock autoLock(mLock); + uid_t uid; + if (getUID(&uid)) { + mDelegate->setUID(uid); + } + LOG_PRI(ANDROID_LOG_VERBOSE, LOG_TAG, "connect on behalf of uid %d", uid); + return connect_l(uri, headers, offset); } |