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

Side by Side Diff: Source/modules/fetch/Body.h

Issue 883323004: Revert of Use ExclusiveStreamReader to lock Body. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@exclusive-reader
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/streams/ReadableStream.h ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Body_h 5 #ifndef Body_h
6 #define Body_h 6 #define Body_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "core/dom/ActiveDOMObject.h" 11 #include "core/dom/ActiveDOMObject.h"
12 #include "core/fileapi/FileReaderLoader.h" 12 #include "core/fileapi/FileReaderLoader.h"
13 #include "core/fileapi/FileReaderLoaderClient.h" 13 #include "core/fileapi/FileReaderLoaderClient.h"
14 #include "core/streams/ReadableStreamImpl.h" 14 #include "core/streams/ReadableStreamImpl.h"
15 #include "platform/blob/BlobData.h" 15 #include "platform/blob/BlobData.h"
16 #include "platform/heap/Handle.h" 16 #include "platform/heap/Handle.h"
17 #include "wtf/RefPtr.h" 17 #include "wtf/RefPtr.h"
18 18
19 namespace blink { 19 namespace blink {
20 20
21 class BodyStreamBuffer; 21 class BodyStreamBuffer;
22 class ExclusiveStreamReader;
23 class ScriptState; 22 class ScriptState;
24 23
25 class Body 24 class Body
26 : public GarbageCollectedFinalized<Body> 25 : public GarbageCollectedFinalized<Body>
27 , public ScriptWrappable 26 , public ScriptWrappable
28 , public ActiveDOMObject 27 , public ActiveDOMObject
29 , public FileReaderLoaderClient { 28 , public FileReaderLoaderClient {
30 DEFINE_WRAPPERTYPEINFO(); 29 DEFINE_WRAPPERTYPEINFO();
31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Body); 30 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Body);
32 public: 31 public:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual String contentTypeForBuffer() const = 0; 94 virtual String contentTypeForBuffer() const = 0;
96 95
97 void didFinishLoadingViaStream(PassRefPtr<DOMArrayBuffer>); 96 void didFinishLoadingViaStream(PassRefPtr<DOMArrayBuffer>);
98 97
99 OwnPtr<FileReaderLoader> m_loader; 98 OwnPtr<FileReaderLoader> m_loader;
100 bool m_bodyUsed; 99 bool m_bodyUsed;
101 ResponseType m_responseType; 100 ResponseType m_responseType;
102 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; 101 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver;
103 Member<ReadableStreamSource> m_streamSource; 102 Member<ReadableStreamSource> m_streamSource;
104 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_ stream; 103 Member<ReadableStreamImpl<ReadableStreamChunkTypeTraits<DOMArrayBuffer>>> m_ stream;
105 Member<ExclusiveStreamReader> m_streamReader;
106 }; 104 };
107 105
108 } // namespace blink 106 } // namespace blink
109 107
110 #endif // Body_h 108 #endif // Body_h
OLDNEW
« no previous file with comments | « Source/core/streams/ReadableStream.h ('k') | Source/modules/fetch/Body.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698