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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/FetchBlobDataConsumerHandle.h" 5 #include "modules/fetch/FetchBlobDataConsumerHandle.h"
6 6
7 #include "core/dom/ExecutionContext.h" 7 #include "core/dom/ExecutionContext.h"
8 #include "core/fetch/FetchInitiatorTypeNames.h" 8 #include "core/fetch/FetchInitiatorTypeNames.h"
9 #include "core/loader/ThreadableLoaderClient.h" 9 #include "core/loader/ThreadableLoaderClient.h"
10 #include "modules/fetch/CompositeDataConsumerHandle.h" 10 #include "modules/fetch/CompositeDataConsumerHandle.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 m_loader->cancel(); 76 m_loader->cancel();
77 m_loader.clear(); 77 m_loader.clear();
78 } 78 }
79 } 79 }
80 80
81 void start(ExecutionContext* executionContext) override 81 void start(ExecutionContext* executionContext) override
82 { 82 {
83 ASSERT(executionContext->isContextThread()); 83 ASSERT(executionContext->isContextThread());
84 ASSERT(!m_loader); 84 ASSERT(!m_loader);
85 85
86 KURL url = BlobURL::createPublicURL(executionContext->securityOrigin()); 86 KURL url = BlobURL::createPublicURL(executionContext->getSecurityOrigin( ));
87 if (url.isEmpty()) { 87 if (url.isEmpty()) {
88 m_updater->update(createUnexpectedErrorDataConsumerHandle()); 88 m_updater->update(createUnexpectedErrorDataConsumerHandle());
89 return; 89 return;
90 } 90 }
91 BlobRegistry::registerPublicBlobURL(executionContext->securityOrigin(), url, m_blobDataHandle); 91 BlobRegistry::registerPublicBlobURL(executionContext->getSecurityOrigin( ), url, m_blobDataHandle);
92 92
93 m_loader = createLoader(executionContext, this); 93 m_loader = createLoader(executionContext, this);
94 ASSERT(m_loader); 94 ASSERT(m_loader);
95 95
96 ResourceRequest request(url); 96 ResourceRequest request(url);
97 request.setRequestContext(WebURLRequest::RequestContextInternal); 97 request.setRequestContext(WebURLRequest::RequestContextInternal);
98 request.setUseStreamOnResponse(true); 98 request.setUseStreamOnResponse(true);
99 // We intentionally skip 'setExternalRequestStateFromRequestorAddressSpa ce', as 'data:' can never be external. 99 // We intentionally skip 'setExternalRequestStateFromRequestorAddressSpa ce', as 'data:' can never be external.
100 m_loader->start(request); 100 m_loader->start(request);
101 } 101 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 return adoptPtr(new FetchBlobDataConsumerHandle(executionContext, blobDataHa ndle, new DefaultLoaderFactory)); 306 return adoptPtr(new FetchBlobDataConsumerHandle(executionContext, blobDataHa ndle, new DefaultLoaderFactory));
307 } 307 }
308 308
309 FetchDataConsumerHandle::Reader* FetchBlobDataConsumerHandle::obtainReaderIntern al(Client* client) 309 FetchDataConsumerHandle::Reader* FetchBlobDataConsumerHandle::obtainReaderIntern al(Client* client)
310 { 310 {
311 return m_readerContext->obtainReader(client).leakPtr(); 311 return m_readerContext->obtainReader(client).leakPtr();
312 } 312 }
313 313
314 } // namespace blink 314 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698