OLD | NEW |
---|---|
(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_ | |
OLD | NEW |