Index: android_webview/native/aw_web_resource_response_impl.h |
diff --git a/android_webview/native/intercepted_request_data_impl.h b/android_webview/native/aw_web_resource_response_impl.h |
similarity index 56% |
rename from android_webview/native/intercepted_request_data_impl.h |
rename to android_webview/native/aw_web_resource_response_impl.h |
index 598b31932105fb921a770842169e58103da9cbf8..fc508a643f41318ce63197b85c817767f75e3400 100644 |
--- a/android_webview/native/intercepted_request_data_impl.h |
+++ b/android_webview/native/aw_web_resource_response_impl.h |
@@ -5,33 +5,43 @@ |
#ifndef ANDROID_WEBVIEW_NATIVE_INTERCEPTED_REQUEST_DATA_IMPL_H_ |
#define ANDROID_WEBVIEW_NATIVE_INTERCEPTED_REQUEST_DATA_IMPL_H_ |
-#include "android_webview/browser/intercepted_request_data.h" |
+#include "android_webview/browser/aw_web_resource_response.h" |
#include "base/android/scoped_java_ref.h" |
#include "base/compiler_specific.h" |
#include "base/memory/scoped_ptr.h" |
+namespace net { |
+class HttpResponseHeaders; |
+} |
+ |
namespace android_webview { |
class InputStream; |
-class InterceptedRequestDataImpl : public InterceptedRequestData { |
+class AwWebResourceResponseImpl : public AwWebResourceResponse { |
public: |
// It is expected that |obj| is an instance of the Java-side |
- // org.chromium.android_webview.InterceptedRequestData class. |
- InterceptedRequestDataImpl(const base::android::JavaRef<jobject>& obj); |
- virtual ~InterceptedRequestDataImpl(); |
+ // org.chromium.android_webview.AwWebResourceResponse class. |
+ AwWebResourceResponseImpl(const base::android::JavaRef<jobject>& obj); |
+ virtual ~AwWebResourceResponseImpl(); |
virtual scoped_ptr<InputStream> GetInputStream(JNIEnv* env) const OVERRIDE; |
virtual bool GetMimeType(JNIEnv* env, std::string* mime_type) const OVERRIDE; |
virtual bool GetCharset(JNIEnv* env, std::string* charset) const OVERRIDE; |
+ virtual bool GetStatusInfo(JNIEnv* env, |
+ int* status_code, |
+ std::string* reason_phrase) const OVERRIDE; |
+ virtual bool GetResponseHeaders( |
+ JNIEnv* env, |
+ net::HttpResponseHeaders* headers) const OVERRIDE; |
private: |
base::android::ScopedJavaGlobalRef<jobject> java_object_; |
- DISALLOW_COPY_AND_ASSIGN(InterceptedRequestDataImpl); |
+ DISALLOW_COPY_AND_ASSIGN(AwWebResourceResponseImpl); |
}; |
-bool RegisterInterceptedRequestData(JNIEnv* env); |
+bool RegisterAwWebResourceResponse(JNIEnv* env); |
} // namespace android_webview |