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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp

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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/fetch/BodyStreamBuffer.h" 5 #include "modules/fetch/BodyStreamBuffer.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "bindings/core/v8/ScriptState.h" 8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/V8PrivateProperty.h" 9 #include "bindings/core/v8/V8PrivateProperty.h"
10 #include "bindings/core/v8/V8ThrowException.h" 10 #include "bindings/core/v8/V8ThrowException.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void didFetchDataLoadedString(const String& string) override { 49 void didFetchDataLoadedString(const String& string) override {
50 m_buffer->endLoading(); 50 m_buffer->endLoading();
51 m_client->didFetchDataLoadedString(string); 51 m_client->didFetchDataLoadedString(string);
52 } 52 }
53 53
54 void didFetchDataLoadedStream() override { 54 void didFetchDataLoadedStream() override {
55 m_buffer->endLoading(); 55 m_buffer->endLoading();
56 m_client->didFetchDataLoadedStream(); 56 m_client->didFetchDataLoadedStream();
57 } 57 }
58 58
59 void didFetchDataLoadedCustomFormat() override {
60 m_buffer->endLoading();
61 m_client->didFetchDataLoadedCustomFormat();
62 }
63
59 void didFetchDataLoadFailed() override { 64 void didFetchDataLoadFailed() override {
60 m_buffer->endLoading(); 65 m_buffer->endLoading();
61 m_client->didFetchDataLoadFailed(); 66 m_client->didFetchDataLoadFailed();
62 } 67 }
63 68
64 DEFINE_INLINE_TRACE() { 69 DEFINE_INLINE_TRACE() {
65 visitor->trace(m_buffer); 70 visitor->trace(m_buffer);
66 visitor->trace(m_client); 71 visitor->trace(m_client);
67 ContextLifecycleObserver::trace(visitor); 72 ContextLifecycleObserver::trace(visitor);
68 FetchDataLoader::Client::trace(visitor); 73 FetchDataLoader::Client::trace(visitor);
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 386 }
382 if (isErrored) 387 if (isErrored)
383 return BytesConsumer::createErrored(BytesConsumer::Error("error")); 388 return BytesConsumer::createErrored(BytesConsumer::Error("error"));
384 389
385 DCHECK(consumer); 390 DCHECK(consumer);
386 consumer->clearClient(); 391 consumer->clearClient();
387 return consumer; 392 return consumer;
388 } 393 }
389 394
390 } // namespace blink 395 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698