| 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 if (!data) | 366 if (!data) |
| 367 return 0; | 367 return 0; |
| 368 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); | 368 return static_cast<ExtraDataContainer*>(data.get())->getExtraData(); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { | 371 void WebURLResponse::setExtraData(WebURLResponse::ExtraData* extraData) { |
| 372 if (extraData != getExtraData()) | 372 if (extraData != getExtraData()) |
| 373 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 373 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 374 } | 374 } |
| 375 | 375 |
| 376 WebString WebURLResponse::alpnNegotiatedProtocol() const { |
| 377 return m_resourceResponse->alpnNegotiatedProtocol(); |
| 378 } |
| 379 |
| 380 void WebURLResponse::setALPNNegotiatedProtocol( |
| 381 const WebString& alpnNegotiatedProtocol) { |
| 382 m_resourceResponse->setALPNNegotiatedProtocol(alpnNegotiatedProtocol); |
| 383 } |
| 384 |
| 385 WebString WebURLResponse::connectionInfo() const { |
| 386 return m_resourceResponse->connectionInfo(); |
| 387 } |
| 388 |
| 389 void WebURLResponse::setConnectionInfo(const WebString& connectionInfo) { |
| 390 m_resourceResponse->setConnectionInfo(connectionInfo); |
| 391 } |
| 392 |
| 376 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 393 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 377 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 394 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 378 } | 395 } |
| 379 | 396 |
| 380 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 397 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 381 | 398 |
| 382 } // namespace blink | 399 } // namespace blink |
| OLD | NEW |