| Index: third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
|
| diff --git a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
|
| index 690b3aa8f210c49e58211798a80e7f1119469ce7..1dccffb0a78c648ce5c3d0d9aca538d340b955ed 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
|
| +++ b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
|
| @@ -8,6 +8,7 @@
|
| #include "core/dom/DOMArrayBuffer.h"
|
| #include "core/streams/Stream.h"
|
| #include "modules/ModulesExport.h"
|
| +#include "mojo/public/cpp/system/data_pipe.h"
|
| #include "platform/blob/BlobData.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/Forward.h"
|
| @@ -42,8 +43,8 @@ class MODULES_EXPORT FetchDataLoader
|
| }
|
| virtual void DidFetchDataLoadedString(const String&) { NOTREACHED(); }
|
| // This is called after all data are read from |handle| and written
|
| - // to |outStream|, and |outStream| is closed or aborted.
|
| - virtual void DidFetchDataLoadedStream() { NOTREACHED(); }
|
| + // to |out_datapipe|, and |out_datapipe| is closed or aborted.
|
| + virtual void DidFetchDataLoadedDataPipe() { NOTREACHED(); }
|
|
|
| // This function is called when a "custom" FetchDataLoader (none of the
|
| // ones listed above) finishes loading.
|
| @@ -57,7 +58,9 @@ class MODULES_EXPORT FetchDataLoader
|
| static FetchDataLoader* CreateLoaderAsBlobHandle(const String& mime_type);
|
| static FetchDataLoader* CreateLoaderAsArrayBuffer();
|
| static FetchDataLoader* CreateLoaderAsString();
|
| - static FetchDataLoader* CreateLoaderAsStream(Stream*);
|
| + static FetchDataLoader* CreateLoaderAsDataPipe(
|
| + mojo::ScopedDataPipeProducerHandle out_datapipe);
|
| +
|
| virtual ~FetchDataLoader() {}
|
|
|
| // |consumer| must not have a client when called.
|
|
|