Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2014 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 ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ | |
| 6 #define ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/android/jni_android.h" | |
| 11 #include "media/base/android/media_url_interceptor.h" | |
| 12 #include "media/base/media_export.h" | |
| 13 | |
| 14 namespace android_webview { | |
| 15 | |
| 16 // Interceptor to handle urls for media assets in the apk. | |
| 17 class AwMediaUrlInterceptor : public media::MediaUrlInterceptor { | |
| 18 public: | |
| 19 virtual bool Intercept(const std::string& url, | |
| 20 int* fd, | |
| 21 int64* offset, | |
| 22 int64* size) const; | |
|
mnaganov (inactive)
2014/07/25 08:28:54
OVERRIDE?
Ignacio Solla
2014/07/25 11:05:48
Done.
| |
| 23 }; | |
| 24 | |
| 25 } // namespace android_webview | |
| 26 | |
| 27 #endif // ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ | |
| OLD | NEW |