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

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

Issue 411353002: MediaUrlInterceptor for embedders to handle custom urls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright nit 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_player_bridge.h
diff --git a/media/base/android/media_player_bridge.h b/media/base/android/media_player_bridge.h
index ee56e281213039379236007f86e4d89018fa95af..7d03854b816157a67db6ece94f553d8578a07bb3 100644
--- a/media/base/android/media_player_bridge.h
+++ b/media/base/android/media_player_bridge.h
@@ -138,6 +138,11 @@ class MEDIA_EXPORT MediaPlayerBridge : public MediaPlayerAndroid {
void OnMediaMetadataExtracted(base::TimeDelta duration, int width, int height,
bool success);
+ // Returns true if a MediaUrlInterceptor registered by the embedder has
+ // intercepted the url.
+ bool InterceptMediaUrl(
+ const std::string& url, int* fd, int64* offset, int64* size);
+
// Whether the player is prepared for playback.
bool prepared_;
« no previous file with comments | « media/base/android/java/src/org/chromium/media/MediaPlayerBridge.java ('k') | media/base/android/media_player_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698