| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 void WebHTTPLoadInfo::Reset() { | 43 void WebHTTPLoadInfo::Reset() { |
| 44 private_.Reset(); | 44 private_.Reset(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void WebHTTPLoadInfo::Assign(const WebHTTPLoadInfo& r) { | 47 void WebHTTPLoadInfo::Assign(const WebHTTPLoadInfo& r) { |
| 48 private_ = r.private_; | 48 private_ = r.private_; |
| 49 } | 49 } |
| 50 | 50 |
| 51 WebHTTPLoadInfo::WebHTTPLoadInfo(WTF::PassRefPtr<ResourceLoadInfo> value) | 51 WebHTTPLoadInfo::WebHTTPLoadInfo(WTF::PassRefPtr<ResourceLoadInfo> value) |
| 52 : private_(value) {} | 52 : private_(std::move(value)) {} |
| 53 | 53 |
| 54 WebHTTPLoadInfo::operator WTF::PassRefPtr<ResourceLoadInfo>() const { | 54 WebHTTPLoadInfo::operator WTF::PassRefPtr<ResourceLoadInfo>() const { |
| 55 return private_.Get(); | 55 return private_.Get(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 int WebHTTPLoadInfo::HttpStatusCode() const { | 58 int WebHTTPLoadInfo::HttpStatusCode() const { |
| 59 DCHECK(!private_.IsNull()); | 59 DCHECK(!private_.IsNull()); |
| 60 return private_->http_status_code; | 60 return private_->http_status_code; |
| 61 } | 61 } |
| 62 | 62 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 return private_->npn_negotiated_protocol; | 123 return private_->npn_negotiated_protocol; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void WebHTTPLoadInfo::SetNPNNegotiatedProtocol( | 126 void WebHTTPLoadInfo::SetNPNNegotiatedProtocol( |
| 127 const WebString& npn_negotiated_protocol) { | 127 const WebString& npn_negotiated_protocol) { |
| 128 DCHECK(!private_.IsNull()); | 128 DCHECK(!private_.IsNull()); |
| 129 private_->npn_negotiated_protocol = npn_negotiated_protocol; | 129 private_->npn_negotiated_protocol = npn_negotiated_protocol; |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace blink | 132 } // namespace blink |
| OLD | NEW |