Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: android_webview/native/aw_media_url_interceptor.h

Issue 2863233002: [WebView] Move files from native to browser (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_
7
8 #include <stdint.h>
9
10 #include <string>
11
12 #include "base/android/jni_android.h"
13 #include "media/base/android/media_url_interceptor.h"
14
15 namespace android_webview {
16
17 // Interceptor to handle urls for media assets in the apk.
18 class AwMediaUrlInterceptor : public media::MediaUrlInterceptor {
19 public:
20 bool Intercept(const std::string& url,
21 int* fd,
22 int64_t* offset,
23 int64_t* size) const override;
24 };
25
26 } // namespace android_webview
27
28 #endif // ANDROID_WEBVIEW_NATIVE_AW_MEDIA_URL_INTERCEPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698