| Index: content/browser/loader/stream_resource_handler.h
|
| diff --git a/content/browser/loader/stream_resource_handler.h b/content/browser/loader/stream_resource_handler.h
|
| index daa9b504a2ac9bf8499239a3e1e383e6e9245425..f43f3a68d8f81d194701b3197190eabfda58e14b 100644
|
| --- a/content/browser/loader/stream_resource_handler.h
|
| +++ b/content/browser/loader/stream_resource_handler.h
|
| @@ -28,7 +28,8 @@ class StreamResourceHandler : public StreamWriteObserver,
|
| // how origin check is done on resource loading.
|
| StreamResourceHandler(net::URLRequest* request,
|
| StreamRegistry* registry,
|
| - const GURL& origin);
|
| + const GURL& origin,
|
| + const std::string& payload);
|
| virtual ~StreamResourceHandler();
|
|
|
| virtual bool OnUploadProgress(int request_id,
|
| @@ -72,6 +73,12 @@ class StreamResourceHandler : public StreamWriteObserver,
|
| virtual void OnDataDownloaded(int request_id, int bytes_downloaded) OVERRIDE;
|
|
|
| Stream* stream() { return stream_.get(); }
|
| + void SetNextHandler(scoped_ptr<ResourceHandler> next_handler) {
|
| + next_handler_ = next_handler.Pass();
|
| + }
|
| + bool HasPayload() {
|
| + return !payload_.empty();
|
| + }
|
|
|
| private:
|
| virtual void OnSpaceAvailable(Stream* stream) OVERRIDE;
|
| @@ -79,6 +86,9 @@ class StreamResourceHandler : public StreamWriteObserver,
|
|
|
| scoped_refptr<Stream> stream_;
|
| scoped_refptr<net::IOBuffer> read_buffer_;
|
| + scoped_ptr<ResourceHandler> next_handler_;
|
| + std::string payload_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler);
|
| };
|
|
|
|
|