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

Side by Side Diff: media/base/android/media_resource_getter.h

Issue 12595005: Parsing filesystem url before giving it to media player (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
6 #define MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "base/files/file_path.h"
12 #include "media/base/media_export.h"
13
14 namespace media {
15
16 // Class for asynchronously retrieving resources for a media URL. All callbacks
17 // are executed on the caller's thread.
18 class MEDIA_EXPORT MediaResourceGetter {
19 public:
20 typedef base::Callback<void(const std::string&)> GetCookieCB;
21 typedef base::Callback<void(const std::string&)> GetPlatformPathCB;
22 virtual ~MediaResourceGetter();
23
24 // Method for getting the cookies for a given URL.
25 virtual void GetCookies(const std::string& url,
26 const std::string& first_party_for_cookies,
27 const GetCookieCB& callback) = 0;
28
29 // Method for getting the platform path from a file system URL.
30 virtual void GetPlatformPathFromFileSystemURL(
31 const std::string& url,
scherkus (not reviewing) 2013/03/08 21:26:27 ditto for GURL if it's possible
qinmin 2013/03/08 22:36:12 Done.
32 const GetPlatformPathCB& callback) = 0;
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698