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

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

Issue 623833003: replace OVERRIDE and FINAL with override and final in android_webview/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "android_webview/browser/input_stream.h" 8 #include "android_webview/browser/input_stream.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // |stream| should be an instance of the InputStream Java class. 26 // |stream| should be an instance of the InputStream Java class.
27 // |stream| can't be null. 27 // |stream| can't be null.
28 InputStreamImpl(const base::android::JavaRef<jobject>& stream); 28 InputStreamImpl(const base::android::JavaRef<jobject>& stream);
29 virtual ~InputStreamImpl(); 29 virtual ~InputStreamImpl();
30 30
31 // Gets the underlying Java object. Guaranteed non-NULL. 31 // Gets the underlying Java object. Guaranteed non-NULL.
32 const jobject jobj() const { return jobject_.obj(); } 32 const jobject jobj() const { return jobject_.obj(); }
33 33
34 // InputStream implementation. 34 // InputStream implementation.
35 virtual bool BytesAvailable(int* bytes_available) const OVERRIDE; 35 virtual bool BytesAvailable(int* bytes_available) const override;
36 virtual bool Skip(int64_t n, int64_t* bytes_skipped) OVERRIDE; 36 virtual bool Skip(int64_t n, int64_t* bytes_skipped) override;
37 virtual bool Read(net::IOBuffer* dest, int length, int* bytes_read) OVERRIDE; 37 virtual bool Read(net::IOBuffer* dest, int length, int* bytes_read) override;
38 protected: 38 protected:
39 // Parameterless constructor exposed for testing. 39 // Parameterless constructor exposed for testing.
40 InputStreamImpl(); 40 InputStreamImpl();
41 41
42 private: 42 private:
43 base::android::ScopedJavaGlobalRef<jobject> jobject_; 43 base::android::ScopedJavaGlobalRef<jobject> jobject_;
44 base::android::ScopedJavaGlobalRef<jbyteArray> buffer_; 44 base::android::ScopedJavaGlobalRef<jbyteArray> buffer_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(InputStreamImpl); 46 DISALLOW_COPY_AND_ASSIGN(InputStreamImpl);
47 }; 47 };
48 48
49 bool RegisterInputStream(JNIEnv* env); 49 bool RegisterInputStream(JNIEnv* env);
50 50
51 } // namespace android_webview 51 } // namespace android_webview
52 52
53 #endif // ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_ 53 #endif // ANDROID_WEBVIEW_NATIVE_INPUT_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698