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

Unified Diff: media/base/android/media_resource_getter.h

Issue 411353002: MediaUrlInterceptor for embedders to handle custom urls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 5 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
Index: media/base/android/media_resource_getter.h
diff --git a/media/base/android/media_resource_getter.h b/media/base/android/media_resource_getter.h
index b833aa8189e797c623422f37e4b306207aaec3b8..19560ed538b46f10648fe47aa3931924beb9a24b 100644
--- a/media/base/android/media_resource_getter.h
+++ b/media/base/android/media_resource_getter.h
@@ -50,13 +50,21 @@ class MEDIA_EXPORT MediaResourceGetter {
const GURL& url,
const GetPlatformPathCB& callback) = 0;
- // Extract the metadata from a media URL. Once completed, the provided
+ // Extracts the metadata from a media URL. Once completed, the provided
// callback function will be run.
virtual void ExtractMediaMetadata(
const std::string& url,
const std::string& cookies,
const std::string& user_agent,
const ExtractMediaMetadataCB& callback) = 0;
+
+ // Extracts the metadata from a file descriptor. Once completed, the
+ // provided callback function will be run.
+ virtual void ExtractMediaMetadata(
+ const int fd,
+ const int64 offset,
+ const int64 size,
+ const ExtractMediaMetadataCB& callback) = 0;
};
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698