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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 1710733002: Move multipart resource handling to core/fetch (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup
Patch Set: 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 WebURL WebURLResponse::originalURLViaServiceWorker() const 433 WebURL WebURLResponse::originalURLViaServiceWorker() const
434 { 434 {
435 return m_private->m_resourceResponse->originalURLViaServiceWorker(); 435 return m_private->m_resourceResponse->originalURLViaServiceWorker();
436 } 436 }
437 437
438 void WebURLResponse::setOriginalURLViaServiceWorker(const WebURL& url) 438 void WebURLResponse::setOriginalURLViaServiceWorker(const WebURL& url)
439 { 439 {
440 m_private->m_resourceResponse->setOriginalURLViaServiceWorker(url); 440 m_private->m_resourceResponse->setOriginalURLViaServiceWorker(url);
441 } 441 }
442 442
443 bool WebURLResponse::isMultipartPayload() const 443 void WebURLResponse::setMultipartBoundary(const char* bytes, size_t size)
444 { 444 {
445 return m_private->m_resourceResponse->isMultipartPayload(); 445 m_private->m_resourceResponse->setMultipartBoundary(bytes, size);
446 }
447
448 void WebURLResponse::setIsMultipartPayload(bool value)
449 {
450 m_private->m_resourceResponse->setIsMultipartPayload(value);
451 } 446 }
452 447
453 WebString WebURLResponse::downloadFilePath() const 448 WebString WebURLResponse::downloadFilePath() const
454 { 449 {
455 return m_private->m_resourceResponse->downloadedFilePath(); 450 return m_private->m_resourceResponse->downloadedFilePath();
456 } 451 }
457 452
458 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath) 453 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath)
459 { 454 {
460 m_private->m_resourceResponse->setDownloadedFilePath(downloadFilePath); 455 m_private->m_resourceResponse->setDownloadedFilePath(downloadFilePath);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 // Subclasses may call this directly so a self-assignment check is needed 493 // Subclasses may call this directly so a self-assignment check is needed
499 // here as well as in the public assign method. 494 // here as well as in the public assign method.
500 if (m_private == p) 495 if (m_private == p)
501 return; 496 return;
502 if (m_private) 497 if (m_private)
503 m_private->dispose(); 498 m_private->dispose();
504 m_private = p; 499 m_private = p;
505 } 500 }
506 501
507 } // namespace blink 502 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698