| 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 75a987daf5f7e515799dc7f6fbc0d0e887ef2f7c..46afeed0fda8823c6c72a8236df55545a14c1683 100644
|
| --- a/content/browser/loader/stream_resource_handler.h
|
| +++ b/content/browser/loader/stream_resource_handler.h
|
| @@ -8,8 +8,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "content/browser/loader/resource_handler.h"
|
| -#include "content/browser/streams/stream_write_observer.h"
|
| -#include "url/gurl.h"
|
| +#include "content/browser/loader/stream_writer.h"
|
|
|
| namespace net {
|
| class URLRequest;
|
| @@ -20,8 +19,7 @@ namespace content {
|
| class StreamRegistry;
|
|
|
| // Redirect this resource to a stream.
|
| -class StreamResourceHandler : public StreamWriteObserver,
|
| - public ResourceHandler {
|
| +class StreamResourceHandler : public ResourceHandler {
|
| public:
|
| // |origin| will be used to construct the URL for the Stream. See
|
| // WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand
|
| @@ -31,6 +29,8 @@ class StreamResourceHandler : public StreamWriteObserver,
|
| const GURL& origin);
|
| virtual ~StreamResourceHandler();
|
|
|
| + virtual void SetController(ResourceController* controller) OVERRIDE;
|
| +
|
| virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
|
|
|
| // Not needed, as this event handler ought to be the final resource.
|
| @@ -59,14 +59,11 @@ class StreamResourceHandler : public StreamWriteObserver,
|
|
|
| virtual void OnDataDownloaded(int bytes_downloaded) OVERRIDE;
|
|
|
| - Stream* stream() { return stream_.get(); }
|
| + Stream* stream() { return writer_.stream(); }
|
|
|
| private:
|
| - virtual void OnSpaceAvailable(Stream* stream) OVERRIDE;
|
| - virtual void OnClose(Stream* stream) OVERRIDE;
|
| + StreamWriter writer_;
|
|
|
| - scoped_refptr<Stream> stream_;
|
| - scoped_refptr<net::IOBuffer> read_buffer_;
|
| DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler);
|
| };
|
|
|
|
|