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

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

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 #ifndef BodyStreamBuffer_h 5 #ifndef BodyStreamBuffer_h
6 #define BodyStreamBuffer_h 6 #define BodyStreamBuffer_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h" 9 #include "bindings/core/v8/ScriptValue.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
(...skipping 29 matching lines...) Expand all
40 PassRefPtr<BlobDataHandle> drainAsBlobDataHandle( 40 PassRefPtr<BlobDataHandle> drainAsBlobDataHandle(
41 BytesConsumer::BlobSizePolicy); 41 BytesConsumer::BlobSizePolicy);
42 PassRefPtr<EncodedFormData> drainAsFormData(); 42 PassRefPtr<EncodedFormData> drainAsFormData();
43 void startLoading(FetchDataLoader*, FetchDataLoader::Client* /* client */); 43 void startLoading(FetchDataLoader*, FetchDataLoader::Client* /* client */);
44 void tee(BodyStreamBuffer**, BodyStreamBuffer**); 44 void tee(BodyStreamBuffer**, BodyStreamBuffer**);
45 45
46 // UnderlyingSourceBase 46 // UnderlyingSourceBase
47 ScriptPromise pull(ScriptState*) override; 47 ScriptPromise pull(ScriptState*) override;
48 ScriptPromise cancel(ScriptState*, ScriptValue reason) override; 48 ScriptPromise cancel(ScriptState*, ScriptValue reason) override;
49 bool hasPendingActivity() const override; 49 bool hasPendingActivity() const override;
50 void contextDestroyed() override; 50 void contextDestroyed(ExecutionContext*) override;
51 51
52 // BytesConsumer::Client 52 // BytesConsumer::Client
53 void onStateChange() override; 53 void onStateChange() override;
54 54
55 bool isStreamReadable(); 55 bool isStreamReadable();
56 bool isStreamClosed(); 56 bool isStreamClosed();
57 bool isStreamErrored(); 57 bool isStreamErrored();
58 bool isStreamLocked(); 58 bool isStreamLocked();
59 bool isStreamDisturbed(); 59 bool isStreamDisturbed();
60 void closeAndLockAndDisturb(); 60 void closeAndLockAndDisturb();
(...skipping 20 matching lines...) Expand all
81 Member<BytesConsumer> m_consumer; 81 Member<BytesConsumer> m_consumer;
82 // We need this member to keep it alive while loading. 82 // We need this member to keep it alive while loading.
83 Member<FetchDataLoader> m_loader; 83 Member<FetchDataLoader> m_loader;
84 bool m_streamNeedsMore = false; 84 bool m_streamNeedsMore = false;
85 bool m_madeFromReadableStream; 85 bool m_madeFromReadableStream;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // BodyStreamBuffer_h 90 #endif // BodyStreamBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698