Chromium Code Reviews| Index: android_webview/native/aw_media_url_interceptor.h |
| diff --git a/android_webview/native/aw_media_url_interceptor.h b/android_webview/native/aw_media_url_interceptor.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d944ed2d663913d5b2c5306bf0b1893ac577891e |
| --- /dev/null |
| +++ b/android_webview/native/aw_media_url_interceptor.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ |
| +#define ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/android/jni_android.h" |
| +#include "media/base/android/media_url_interceptor.h" |
| +#include "media/base/media_export.h" |
|
xhwang
2014/07/31 16:46:24
Is this needed? If not, the dependency can be more
Ignacio Solla
2014/08/01 09:29:42
Good catch, actually it is not needed. Removed.
|
| + |
| +namespace android_webview { |
| + |
| +// Interceptor to handle urls for media assets in the apk. |
| +class AwMediaUrlInterceptor : public media::MediaUrlInterceptor { |
| + public: |
| + virtual bool Intercept(const std::string& url, |
| + int* fd, |
| + int64* offset, |
| + int64* size) const OVERRIDE; |
| +}; |
| + |
| +} // namespace android_webview |
| + |
| +#endif // ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_ |