| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 WebString WebURLResponse::textEncodingName() const { | 173 WebString WebURLResponse::textEncodingName() const { |
| 174 return m_resourceResponse->textEncodingName(); | 174 return m_resourceResponse->textEncodingName(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void WebURLResponse::setTextEncodingName(const WebString& textEncodingName) { | 177 void WebURLResponse::setTextEncodingName(const WebString& textEncodingName) { |
| 178 m_resourceResponse->setTextEncodingName(textEncodingName); | 178 m_resourceResponse->setTextEncodingName(textEncodingName); |
| 179 } | 179 } |
| 180 | 180 |
| 181 WebString WebURLResponse::suggestedFileName() const { | |
| 182 return m_resourceResponse->suggestedFilename(); | |
| 183 } | |
| 184 | |
| 185 void WebURLResponse::setSuggestedFileName(const WebString& suggestedFileName) { | |
| 186 m_resourceResponse->setSuggestedFilename(suggestedFileName); | |
| 187 } | |
| 188 | |
| 189 WebURLResponse::HTTPVersion WebURLResponse::httpVersion() const { | 181 WebURLResponse::HTTPVersion WebURLResponse::httpVersion() const { |
| 190 return static_cast<HTTPVersion>(m_resourceResponse->httpVersion()); | 182 return static_cast<HTTPVersion>(m_resourceResponse->httpVersion()); |
| 191 } | 183 } |
| 192 | 184 |
| 193 void WebURLResponse::setHTTPVersion(HTTPVersion version) { | 185 void WebURLResponse::setHTTPVersion(HTTPVersion version) { |
| 194 m_resourceResponse->setHTTPVersion( | 186 m_resourceResponse->setHTTPVersion( |
| 195 static_cast<ResourceResponse::HTTPVersion>(version)); | 187 static_cast<ResourceResponse::HTTPVersion>(version)); |
| 196 } | 188 } |
| 197 | 189 |
| 198 int WebURLResponse::httpStatusCode() const { | 190 int WebURLResponse::httpStatusCode() const { |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); | 465 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); |
| 474 } | 466 } |
| 475 | 467 |
| 476 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { | 468 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { |
| 477 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); | 469 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); |
| 478 } | 470 } |
| 479 | 471 |
| 480 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} | 472 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} |
| 481 | 473 |
| 482 } // namespace blink | 474 } // namespace blink |
| OLD | NEW |