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

Side by Side Diff: Source/modules/serviceworkers/Request.cpp

Issue 563703002: Oilpan: Enable oilpan for callback classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "Request.h" 6 #include "Request.h"
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "core/dom/ExecutionContext.h" 9 #include "core/dom/ExecutionContext.h"
10 #include "core/fetch/FetchUtils.h" 10 #include "core/fetch/FetchUtils.h"
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 Request* Request::clone() const 322 Request* Request::clone() const
323 { 323 {
324 return Request::create(*this); 324 return Request::create(*this);
325 } 325 }
326 326
327 void Request::populateWebServiceWorkerRequest(WebServiceWorkerRequest& webReques t) 327 void Request::populateWebServiceWorkerRequest(WebServiceWorkerRequest& webReques t)
328 { 328 {
329 webRequest.setMethod(method()); 329 webRequest.setMethod(method());
330 webRequest.setURL(m_request->url()); 330 webRequest.setURL(m_request->url());
331 m_headers->forEach(adoptPtrWillBeNoop(new FillWebRequestHeaders(&webRequest) )); 331 m_headers->forEach(new FillWebRequestHeaders(&webRequest));
332 webRequest.setReferrer(m_request->referrer().referrer().referrer, static_cas t<WebReferrerPolicy>(m_request->referrer().referrer().referrerPolicy)); 332 webRequest.setReferrer(m_request->referrer().referrer().referrer, static_cas t<WebReferrerPolicy>(m_request->referrer().referrer().referrerPolicy));
333 // FIXME: How can we set isReload properly? What is the correct place to loa d it in to the Request object? We should investigate the right way 333 // FIXME: How can we set isReload properly? What is the correct place to loa d it in to the Request object? We should investigate the right way
334 // to plumb this information in to here. 334 // to plumb this information in to here.
335 } 335 }
336 336
337 void Request::setBodyBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle) 337 void Request::setBodyBlobHandle(PassRefPtr<BlobDataHandle> blobDataHandle)
338 { 338 {
339 m_request->setBlobDataHandle(blobDataHandle); 339 m_request->setBlobDataHandle(blobDataHandle);
340 } 340 }
341 341
342 void Request::clearHeaderList() 342 void Request::clearHeaderList()
343 { 343 {
344 m_request->headerList()->clearList(); 344 m_request->headerList()->clearList();
345 } 345 }
346 346
347 PassRefPtr<BlobDataHandle> Request::blobDataHandle() 347 PassRefPtr<BlobDataHandle> Request::blobDataHandle()
348 { 348 {
349 return m_request->blobDataHandle(); 349 return m_request->blobDataHandle();
350 } 350 }
351 351
352 void Request::trace(Visitor* visitor) 352 void Request::trace(Visitor* visitor)
353 { 353 {
354 Body::trace(visitor); 354 Body::trace(visitor);
355 visitor->trace(m_request); 355 visitor->trace(m_request);
356 visitor->trace(m_headers); 356 visitor->trace(m_headers);
357 } 357 }
358 358
359 } // namespace blink 359 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/HeadersForEachCallback.h ('k') | Source/modules/webaudio/AsyncAudioDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698