| 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 365 |
| 366 void WebURLResponse::SetExtraData(WebURLResponse::ExtraData* extra_data) { | 366 void WebURLResponse::SetExtraData(WebURLResponse::ExtraData* extra_data) { |
| 367 if (extra_data != GetExtraData()) | 367 if (extra_data != GetExtraData()) |
| 368 resource_response_->SetExtraData(ExtraDataContainer::Create(extra_data)); | 368 resource_response_->SetExtraData(ExtraDataContainer::Create(extra_data)); |
| 369 } | 369 } |
| 370 | 370 |
| 371 void WebURLResponse::AppendRedirectResponse(const WebURLResponse& response) { | 371 void WebURLResponse::AppendRedirectResponse(const WebURLResponse& response) { |
| 372 resource_response_->AppendRedirectResponse(response.ToResourceResponse()); | 372 resource_response_->AppendRedirectResponse(response.ToResourceResponse()); |
| 373 } | 373 } |
| 374 | 374 |
| 375 WebString WebURLResponse::AlpnNegotiatedProtocol() const { |
| 376 return resource_response_->AlpnNegotiatedProtocol(); |
| 377 } |
| 378 |
| 379 void WebURLResponse::SetAlpnNegotiatedProtocol( |
| 380 const WebString& alpn_negotiated_protocol) { |
| 381 resource_response_->SetAlpnNegotiatedProtocol(alpn_negotiated_protocol); |
| 382 } |
| 383 |
| 384 net::HttpResponseInfo::ConnectionInfo WebURLResponse::ConnectionInfo() const { |
| 385 return resource_response_->ConnectionInfo(); |
| 386 } |
| 387 |
| 388 void WebURLResponse::SetConnectionInfo( |
| 389 net::HttpResponseInfo::ConnectionInfo connection_info) { |
| 390 resource_response_->SetConnectionInfo(connection_info); |
| 391 } |
| 392 |
| 375 WebURLResponse::WebURLResponse(ResourceResponse& r) : resource_response_(&r) {} | 393 WebURLResponse::WebURLResponse(ResourceResponse& r) : resource_response_(&r) {} |
| 376 | 394 |
| 377 } // namespace blink | 395 } // namespace blink |
| OLD | NEW |