Index: android_webview/browser/intercepted_request_data.h |
diff --git a/android_webview/browser/intercepted_request_data.h b/android_webview/browser/intercepted_request_data.h |
index acf031d338c788eef6583ccd393d90aaf6779a31..5bd9049fb6f6a845b804fa2b302b6962eb7dc0f4 100644 |
--- a/android_webview/browser/intercepted_request_data.h |
+++ b/android_webview/browser/intercepted_request_data.h |
@@ -11,9 +11,10 @@ |
#include "base/memory/scoped_ptr.h" |
namespace net { |
+class HttpResponseHeaders; |
+class NetworkDelegate; |
class URLRequest; |
class URLRequestJob; |
-class NetworkDelegate; |
} |
namespace android_webview { |
@@ -29,6 +30,14 @@ class InterceptedRequestData { |
virtual scoped_ptr<InputStream> GetInputStream(JNIEnv* env) const = 0; |
virtual bool GetMimeType(JNIEnv* env, std::string* mime_type) const = 0; |
virtual bool GetCharset(JNIEnv* env, std::string* charset) const = 0; |
+ virtual bool GetStatusInfo(JNIEnv* env, |
+ int* status_code, |
+ std::string* reason_phrase) const = 0; |
+ // If true is returned then |headers| contain the headers, if false is |
+ // returned |headers| were not updated. |
+ virtual bool GetHeaders( |
benm (inactive)
2014/05/15 17:43:15
GetResponseHeaders
mkosiba (inactive)
2014/06/19 17:54:14
Done.
|
+ JNIEnv* env, |
+ net::HttpResponseHeaders* headers) const = 0; |
// This creates a URLRequestJob for the |request| wich will read data from |
// the |intercepted_request_data| structure (instead of going to the network |