Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 366 | 366 |
| 367 WebServiceWorkerResponseType WebURLResponse::serviceWorkerResponseType() const { | 367 WebServiceWorkerResponseType WebURLResponse::serviceWorkerResponseType() const { |
| 368 return m_resourceResponse->serviceWorkerResponseType(); | 368 return m_resourceResponse->serviceWorkerResponseType(); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void WebURLResponse::setServiceWorkerResponseType( | 371 void WebURLResponse::setServiceWorkerResponseType( |
| 372 WebServiceWorkerResponseType value) { | 372 WebServiceWorkerResponseType value) { |
| 373 m_resourceResponse->setServiceWorkerResponseType(value); | 373 m_resourceResponse->setServiceWorkerResponseType(value); |
| 374 } | 374 } |
| 375 | 375 |
| 376 WebURL WebURLResponse::originalURLViaServiceWorker() const { | 376 void WebURLResponse::setURLListViaServiceWorker( |
| 377 const blink::WebVector<blink::WebURL>& urlListViaServiceWorker) { | |
| 378 Vector<KURL> urlList(urlListViaServiceWorker.size()); | |
| 379 std::transform(urlListViaServiceWorker.begin(), urlListViaServiceWorker.end(), | |
| 380 urlList.begin(), [](const blink::WebURL& url) { return url; }); | |
| 381 m_resourceResponse->setURLListViaServiceWorker(urlList); | |
| 382 } | |
| 383 | |
| 384 blink::WebURL WebURLResponse::originalURLViaServiceWorker() const { | |
|
falken
2016/11/30 14:57:38
Do we need all the blink::'s in the above lines?
horo
2016/12/01 07:42:14
Done.
| |
| 377 return m_resourceResponse->originalURLViaServiceWorker(); | 385 return m_resourceResponse->originalURLViaServiceWorker(); |
| 378 } | 386 } |
| 379 | 387 |
| 380 void WebURLResponse::setOriginalURLViaServiceWorker(const WebURL& url) { | |
| 381 m_resourceResponse->setOriginalURLViaServiceWorker(url); | |
| 382 } | |
| 383 | |
| 384 void WebURLResponse::setMultipartBoundary(const char* bytes, size_t size) { | 388 void WebURLResponse::setMultipartBoundary(const char* bytes, size_t size) { |
| 385 m_resourceResponse->setMultipartBoundary(bytes, size); | 389 m_resourceResponse->setMultipartBoundary(bytes, size); |
| 386 } | 390 } |
| 387 | 391 |
| 388 WebString WebURLResponse::cacheStorageCacheName() const { | 392 WebString WebURLResponse::cacheStorageCacheName() const { |
| 389 return m_resourceResponse->cacheStorageCacheName(); | 393 return m_resourceResponse->cacheStorageCacheName(); |
| 390 } | 394 } |
| 391 | 395 |
| 392 void WebURLResponse::setCacheStorageCacheName( | 396 void WebURLResponse::setCacheStorageCacheName( |
| 393 const WebString& cacheStorageCacheName) { | 397 const WebString& cacheStorageCacheName) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 464 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 461 } | 465 } |
| 462 | 466 |
| 463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 467 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 468 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 465 } | 469 } |
| 466 | 470 |
| 467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 471 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 468 | 472 |
| 469 } // namespace blink | 473 } // namespace blink |
| OLD | NEW |