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

Unified Diff: net/base/data_url.h

Issue 5542001: Allow data URLs to trigger downloads, as they do in Firefox.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years 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
« no previous file with comments | « no previous file | net/base/data_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/data_url.h
===================================================================
--- net/base/data_url.h (revision 68044)
+++ net/base/data_url.h (working copy)
@@ -37,6 +37,9 @@
// If the URL is malformed, then this method will return false, and its
// output variables will remain unchanged. On success, true is returned.
//
+ // OPTIONAL: If |data| is NULL, then the <data> section will not be parsed
+ // or validated.
+ //
static bool Parse(const GURL& url,
std::string* mime_type,
std::string* charset,
« no previous file with comments | « no previous file | net/base/data_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698