Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLResponse.cpp

Issue 2398053003: Compute ResourceResponse::suggestedFileName on the fly. (Closed)
Patch Set: clean up vestigial changes (trybots previous) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData)); 452 m_resourceResponse->setExtraData(ExtraDataContainer::create(extraData));
461 } 453 }
462 454
463 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) { 455 void WebURLResponse::appendRedirectResponse(const WebURLResponse& response) {
464 m_resourceResponse->appendRedirectResponse(response.toResourceResponse()); 456 m_resourceResponse->appendRedirectResponse(response.toResourceResponse());
465 } 457 }
466 458
467 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {} 459 WebURLResponse::WebURLResponse(ResourceResponse& r) : m_resourceResponse(&r) {}
468 460
469 } // namespace blink 461 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/clipboard/DataTransfer.cpp ('k') | third_party/WebKit/Source/platform/network/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698