Rebaseline global-interface-listing-expected.txt
[chromium-blink-merge.git] / android_webview / native / aw_media_url_interceptor.h
blob332fd37393ba2b7a8b7eeb16fd2b5417cd54cd83
1 // Copyright 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.
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_
8 #include <string>
10 #include "base/android/jni_android.h"
11 #include "media/base/android/media_url_interceptor.h"
13 namespace android_webview {
15 // Interceptor to handle urls for media assets in the apk.
16 class AwMediaUrlInterceptor : public media::MediaUrlInterceptor {
17 public:
18 bool Intercept(const std::string& url,
19 int* fd,
20 int64* offset,
21 int64* size) const override;
24 } // namespace android_webview
26 #endif // ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_