| Index: android_webview/browser/aw_web_resource_response.h
|
| diff --git a/android_webview/browser/aw_web_resource_response.h b/android_webview/browser/aw_web_resource_response.h
|
| index 34963606ff86b882915ab31b641e2f0cb9369293..8c317d23304b0d943f30fed691b1870fd4801495 100644
|
| --- a/android_webview/browser/aw_web_resource_response.h
|
| +++ b/android_webview/browser/aw_web_resource_response.h
|
| @@ -14,11 +14,11 @@ namespace net {
|
| class HttpResponseHeaders;
|
| class NetworkDelegate;
|
| class URLRequest;
|
| -class URLRequestJob;
|
| }
|
|
|
| namespace android_webview {
|
|
|
| +class AndroidStreamReaderURLRequestJob;
|
| class InputStream;
|
|
|
| // This class represents the Java-side data that is to be used to complete a
|
| @@ -39,14 +39,12 @@ class AwWebResourceResponse {
|
| JNIEnv* env,
|
| net::HttpResponseHeaders* headers) const = 0;
|
|
|
| - // This creates a URLRequestJob for the |request| wich will read data from
|
| - // the |aw_web_resource_response| structure (instead of going to the network
|
| - // or to the cache).
|
| - // The newly created job takes ownership of |aw_web_resource_response|.
|
| - static net::URLRequestJob* CreateJobFor(
|
| - scoped_ptr<AwWebResourceResponse> aw_web_resource_response,
|
| - net::URLRequest* request,
|
| - net::NetworkDelegate* network_delegate);
|
| + // Instructs the job that the result will be provided from the embedder
|
| + // (via AwWebResourceResponse) rather than from the network.
|
| + // The job takes ownership of |aw_web_resource_response|.
|
| + static void JobDeliverResponseFromEmbedder(
|
| + AndroidStreamReaderURLRequestJob* job,
|
| + scoped_ptr<AwWebResourceResponse> aw_web_resource_response);
|
|
|
| protected:
|
| AwWebResourceResponse() {}
|
|
|