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

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

Issue 1908213004: [Streams] Remove SetReadableStreamDisturbed from ReadableStream.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/FetchRequestData.h" 5 #include "modules/fetch/FetchRequestData.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/fetch/ResourceLoaderOptions.h" 9 #include "core/fetch/ResourceLoaderOptions.h"
10 #include "core/loader/ThreadableLoader.h" 10 #include "core/loader/ThreadableLoader.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 return request; 78 return request;
79 } 79 }
80 80
81 FetchRequestData* FetchRequestData::pass(ScriptState* scriptState) 81 FetchRequestData* FetchRequestData::pass(ScriptState* scriptState)
82 { 82 {
83 FetchRequestData* request = FetchRequestData::cloneExceptBody(); 83 FetchRequestData* request = FetchRequestData::cloneExceptBody();
84 if (m_buffer) { 84 if (m_buffer) {
85 request->m_buffer = m_buffer; 85 request->m_buffer = m_buffer;
86 m_buffer = new BodyStreamBuffer(scriptState, createFetchDataConsumerHand leFromWebHandle(createDoneDataConsumerHandle())); 86 m_buffer = new BodyStreamBuffer(scriptState, createFetchDataConsumerHand leFromWebHandle(createDoneDataConsumerHandle()));
87 m_buffer->setDisturbed(); 87 m_buffer->closeAndLockAndDisturb();
88 } 88 }
89 return request; 89 return request;
90 } 90 }
91 91
92 FetchRequestData::~FetchRequestData() 92 FetchRequestData::~FetchRequestData()
93 { 93 {
94 } 94 }
95 95
96 FetchRequestData::FetchRequestData() 96 FetchRequestData::FetchRequestData()
97 : m_method(HTTPNames::GET) 97 : m_method(HTTPNames::GET)
(...skipping 17 matching lines...) Expand all
115 m_attachedCredential.clear(); 115 m_attachedCredential.clear();
116 } 116 }
117 117
118 DEFINE_TRACE(FetchRequestData) 118 DEFINE_TRACE(FetchRequestData)
119 { 119 {
120 visitor->trace(m_buffer); 120 visitor->trace(m_buffer);
121 visitor->trace(m_headerList); 121 visitor->trace(m_headerList);
122 } 122 }
123 123
124 } // namespace blink 124 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698