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

Unified Diff: content/child/web_url_loader_impl.h

Issue 54233002: Make net::DataURL's MIME string check stricter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CONTENT_EXPORT Created 6 years, 9 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: content/child/web_url_loader_impl.h
diff --git a/content/child/web_url_loader_impl.h b/content/child/web_url_loader_impl.h
index 3ac22a3015791edc6f3447af0796c90a60627849..b58aa375a8e3dc4c0452347ff5bc48d6ff7be0c9 100644
--- a/content/child/web_url_loader_impl.h
+++ b/content/child/web_url_loader_impl.h
@@ -5,16 +5,26 @@
#ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
#define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_
+#include <string>
+
#include "base/memory/ref_counted.h"
#include "content/common/content_export.h"
#include "third_party/WebKit/public/platform/WebURLLoader.h"
+class GURL;
+
namespace webkit_glue {
struct ResourceResponseInfo;
}
namespace content {
+// Extracts the information from a data scheme URL. Exported only for testing.
+CONTENT_EXPORT bool GetInfoFromDataURL(const GURL& url,
+ webkit_glue::ResourceResponseInfo* info,
+ std::string* data,
+ int* error_code);
+
class WebURLLoaderImpl : public blink::WebURLLoader {
public:
WebURLLoaderImpl();

Powered by Google App Engine
This is Rietveld 408576698