OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ | 5 #ifndef ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ |
6 #define ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ | 6 #define ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "android_webview/browser/input_stream.h" | 10 #include "android_webview/browser/input_stream.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // Parameterless constructor exposed for testing. | 43 // Parameterless constructor exposed for testing. |
44 InputStreamImpl(); | 44 InputStreamImpl(); |
45 | 45 |
46 private: | 46 private: |
47 base::android::ScopedJavaGlobalRef<jobject> jobject_; | 47 base::android::ScopedJavaGlobalRef<jobject> jobject_; |
48 base::android::ScopedJavaGlobalRef<jbyteArray> buffer_; | 48 base::android::ScopedJavaGlobalRef<jbyteArray> buffer_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(InputStreamImpl); | 50 DISALLOW_COPY_AND_ASSIGN(InputStreamImpl); |
51 }; | 51 }; |
52 | 52 |
53 bool RegisterInputStream(JNIEnv* env); | |
54 | |
55 } // namespace android_webview | 53 } // namespace android_webview |
56 | 54 |
57 #endif // ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ | 55 #endif // ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ |
OLD | NEW |