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

Unified Diff: android_webview/browser/intercepted_request_data.h

Issue 284123004: [android_webview] Add more params to request intercepting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698