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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkUtils.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/network/NetworkUtils.h
diff --git a/third_party/WebKit/Source/platform/network/NetworkUtils.h b/third_party/WebKit/Source/platform/network/NetworkUtils.h
index d59f454735f0a06c068bb32242c4b8c78351c88f..c262e382bf4d35cb0d7c40739ffa9d34d8418ffc 100644
--- a/third_party/WebKit/Source/platform/network/NetworkUtils.h
+++ b/third_party/WebKit/Source/platform/network/NetworkUtils.h
@@ -6,6 +6,7 @@
#define NetworkUtils_h
#include "platform/PlatformExport.h"
+#include "platform/weborigin/KURL.h"
#include "wtf/Forward.h"
namespace blink {
@@ -24,6 +25,10 @@ PLATFORM_EXPORT bool isLocalHostname(const String& host, bool* isLocal6);
PLATFORM_EXPORT String getDomainAndRegistry(const String& host,
PrivateRegistryFilter);
+// |contentDisposition| should be retrieved from response headers.
+PLATFORM_EXPORT String getSuggestedFilename(const KURL&,
+ const String& contentDisposition);
+
} // NetworkUtils
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/network/DEPS ('k') | third_party/WebKit/Source/platform/network/NetworkUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698