blob: 30d03f5309b167857b22e1fdbd91a557b1ad71b4 [file] [log] [blame]
Wei Jia0a8a8f02017-12-05 17:05:29 -08001/*
2 * Copyright 2017, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _ANDROID_MEDIA_MEDIA2HTTPSERVICE_H_
18#define _ANDROID_MEDIA_MEDIA2HTTPSERVICE_H_
19
20#include "jni.h"
21
22#include <media/MediaHTTPService.h>
23#include <media/stagefright/foundation/ABase.h>
24
25namespace android {
26
27struct JMedia2HTTPService : public MediaHTTPService {
28 JMedia2HTTPService(JNIEnv *env, jobject thiz);
29
30 virtual sp<MediaHTTPConnection> makeHTTPConnection() override;
31
32protected:
33 virtual ~JMedia2HTTPService();
34
35private:
36 jobject mMedia2HTTPServiceObj;
37
38 jmethodID mMakeHTTPConnectionMethod;
39
40 DISALLOW_EVIL_CONSTRUCTORS(JMedia2HTTPService);
41};
42
43} // namespace android
44
45#endif // _ANDROID_MEDIA_MEDIA2HTTPSERVICE_H_