OLD | NEW |
---|---|
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 <media/base/android/media_url_interceptor.h> | |
qinmin
2014/07/24 21:05:27
remote this
Ignacio Solla
2014/07/25 10:35:07
Done.
| |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/callback.h" | 11 #include "base/callback.h" |
11 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
12 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 namespace media { | 18 namespace media { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 const GURL& url, | 51 const GURL& url, |
51 const GetPlatformPathCB& callback) = 0; | 52 const GetPlatformPathCB& callback) = 0; |
52 | 53 |
53 // Extract the metadata from a media URL. Once completed, the provided | 54 // Extract the metadata from a media URL. Once completed, the provided |
54 // callback function will be run. | 55 // callback function will be run. |
55 virtual void ExtractMediaMetadata( | 56 virtual void ExtractMediaMetadata( |
56 const std::string& url, | 57 const std::string& url, |
57 const std::string& cookies, | 58 const std::string& cookies, |
58 const std::string& user_agent, | 59 const std::string& user_agent, |
59 const ExtractMediaMetadataCB& callback) = 0; | 60 const ExtractMediaMetadataCB& callback) = 0; |
61 | |
62 // Extract the metadata from a file descriptor. Once completed, the | |
qinmin
2014/07/24 21:05:27
s/Extract/Extracts/
Ignacio Solla
2014/07/25 10:35:07
Done.
| |
63 // provided callback function will be run. | |
64 virtual void ExtractMediaMetadata( | |
65 const int& fd, | |
qinmin
2014/07/24 21:05:27
primitive types, just use int and int64
Ignacio Solla
2014/07/25 10:35:07
I use int and int64 now instead of references to t
| |
66 const int64& offset, | |
67 const int64& size, | |
68 const ExtractMediaMetadataCB& callback) = 0; | |
60 }; | 69 }; |
61 | 70 |
62 } // namespace media | 71 } // namespace media |
63 | 72 |
64 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ | 73 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ |
OLD | NEW |