| 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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 m_resourceResponse->setCacheStorageCacheName(cacheStorageCacheName); | 399 m_resourceResponse->setCacheStorageCacheName(cacheStorageCacheName); |
| 400 } | 400 } |
| 401 | 401 |
| 402 void WebURLResponse::setCorsExposedHeaderNames( | 402 void WebURLResponse::setCorsExposedHeaderNames( |
| 403 const WebVector<WebString>& headerNames) { | 403 const WebVector<WebString>& headerNames) { |
| 404 Vector<String> exposedHeaderNames; | 404 Vector<String> exposedHeaderNames; |
| 405 exposedHeaderNames.append(headerNames.data(), headerNames.size()); | 405 exposedHeaderNames.append(headerNames.data(), headerNames.size()); |
| 406 m_resourceResponse->setCorsExposedHeaderNames(exposedHeaderNames); | 406 m_resourceResponse->setCorsExposedHeaderNames(exposedHeaderNames); |
| 407 } | 407 } |
| 408 | 408 |
| 409 bool WebURLResponse::didServiceWorkerNavigationPreload() const { |
| 410 return m_resourceResponse->didServiceWorkerNavigationPreload(); |
| 411 } |
| 412 |
| 413 void WebURLResponse::setDidServiceWorkerNavigationPreload(bool value) { |
| 414 m_resourceResponse->setDidServiceWorkerNavigationPreload(value); |
| 415 } |
| 416 |
| 409 WebString WebURLResponse::downloadFilePath() const { | 417 WebString WebURLResponse::downloadFilePath() const { |
| 410 return m_resourceResponse->downloadedFilePath(); | 418 return m_resourceResponse->downloadedFilePath(); |
| 411 } | 419 } |
| 412 | 420 |
| 413 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath) { | 421 void WebURLResponse::setDownloadFilePath(const WebString& downloadFilePath) { |
| 414 m_resourceResponse->setDownloadedFilePath(downloadFilePath); | 422 m_resourceResponse->setDownloadedFilePath(downloadFilePath); |
| 415 } | 423 } |
| 416 | 424 |
| 417 WebString WebURLResponse::remoteIPAddress() const { | 425 WebString WebURLResponse::remoteIPAddress() const { |
| 418 return m_resourceResponse->remoteIPAddress(); | 426 return m_resourceResponse->remoteIPAddress(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 473 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 466 } | 474 } |
| 467 | 475 |
| 468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 476 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 477 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 470 } | 478 } |
| 471 | 479 |
| 472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 480 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 473 | 481 |
| 474 } // namespace blink | 482 } // namespace blink |
| OLD | NEW |