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

Side by Side 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: Address review comments. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ 5 #ifndef MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ 6 #define MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Method for getting the cookies for a given URL. 43 // Method for getting the cookies for a given URL.
44 virtual void GetCookies(const GURL& url, 44 virtual void GetCookies(const GURL& url,
45 const GURL& first_party_for_cookies, 45 const GURL& first_party_for_cookies,
46 const GetCookieCB& callback) = 0; 46 const GetCookieCB& callback) = 0;
47 47
48 // Method for getting the platform path from a file system or blob URL. 48 // Method for getting the platform path from a file system or blob URL.
49 virtual void GetPlatformPathFromURL( 49 virtual void GetPlatformPathFromURL(
50 const GURL& url, 50 const GURL& url,
51 const GetPlatformPathCB& callback) = 0; 51 const GetPlatformPathCB& callback) = 0;
52 52
53 // Extract the metadata from a media URL. Once completed, the provided 53 // Extracts the metadata from a media URL. Once completed, the provided
54 // callback function will be run. 54 // callback function will be run.
55 virtual void ExtractMediaMetadata( 55 virtual void ExtractMediaMetadata(
56 const std::string& url, 56 const std::string& url,
57 const std::string& cookies, 57 const std::string& cookies,
58 const std::string& user_agent, 58 const std::string& user_agent,
59 const ExtractMediaMetadataCB& callback) = 0; 59 const ExtractMediaMetadataCB& callback) = 0;
60
61 // Extracts the metadata from a file descriptor. Once completed, the
62 // provided callback function will be run.
63 virtual void ExtractMediaMetadata(
64 const int fd,
65 const int64 offset,
66 const int64 size,
67 const ExtractMediaMetadataCB& callback) = 0;
60 }; 68 };
61 69
62 } // namespace media 70 } // namespace media
63 71
64 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ 72 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698