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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchDataLoader.h

Issue 2780693003: [wasm] response-based compile APIs (Closed)
Patch Set: simplify Created 3 years, 8 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: 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 e2b4d837d30932d7aaab7914f9d661ff6f6ee2a7..336e761a6355778db2f8d96206e9a391d8d56609 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
@@ -35,17 +35,19 @@ class MODULES_EXPORT FetchDataLoader
// The method corresponding to createLoaderAs... is called on success.
virtual void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
virtual void didFetchDataLoadedArrayBuffer(DOMArrayBuffer*) {
- ASSERT_NOT_REACHED();
- }
- virtual void didFetchDataLoadedString(const String&) {
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
+ 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() { ASSERT_NOT_REACHED(); }
+ virtual void didFetchDataLoadedStream() { NOTREACHED(); }
+
+ // This function is called when a "custom" FetchDataLoader (none of the
+ // ones listed above) finishes loading.
+ virtual void didFetchDataLoadedCustomFormat() { NOTREACHED(); }
virtual void didFetchDataLoadFailed() = 0;
@@ -55,8 +57,7 @@ class MODULES_EXPORT FetchDataLoader
static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType);
static FetchDataLoader* createLoaderAsArrayBuffer();
static FetchDataLoader* createLoaderAsString();
- static FetchDataLoader* createLoaderAsStream(Stream* outStream);
-
+ static FetchDataLoader* createLoaderAsStream(Stream*);
virtual ~FetchDataLoader() {}
// |consumer| must not have a client when called.

Powered by Google App Engine
This is Rietveld 408576698