| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Extracts 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 | 60 |
| 61 // Extracts the metadata from a file descriptor. Once completed, the | 61 // Extracts the metadata from a file descriptor. Once completed, the |
| 62 // provided callback function will be run. | 62 // provided callback function will be run. |
| 63 virtual void ExtractMediaMetadata( | 63 virtual void ExtractMediaMetadata(const int fd, |
| 64 const int fd, | 64 const int64_t offset, |
| 65 const int64 offset, | 65 const int64_t size, |
| 66 const int64 size, | 66 const ExtractMediaMetadataCB& callback) = 0; |
| 67 const ExtractMediaMetadataCB& callback) = 0; | |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace media | 69 } // namespace media |
| 71 | 70 |
| 72 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ | 71 #endif // MEDIA_BASE_ANDROID_MEDIA_RESOURCE_GETTER_H_ |
| OLD | NEW |