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

Unified Diff: net/url_request/url_request_data_job.h

Issue 294193002: Set response headers for data URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 3 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
« no previous file with comments | « net/net.gypi ('k') | net/url_request/url_request_data_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_data_job.h
diff --git a/net/url_request/url_request_data_job.h b/net/url_request/url_request_data_job.h
index d9b26214b342d25de6d3ada145e39a73b11a02eb..f2e38aa4a51bd42807778141dd2d39db00236bda 100644
--- a/net/url_request/url_request_data_job.h
+++ b/net/url_request/url_request_data_job.h
@@ -10,12 +10,23 @@
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_simple_job.h"
+class GURL;
+
namespace net {
+class HttpResponseHeaders;
class URLRequest;
-class URLRequestDataJob : public URLRequestSimpleJob {
+class NET_EXPORT URLRequestDataJob : public URLRequestSimpleJob {
public:
+ // Extracts info from a data scheme URL. Returns OK if successful. Returns
+ // ERR_INVALID_URL otherwise.
+ static int BuildResponse(const GURL& url,
+ std::string* mime_type,
+ std::string* charset,
+ std::string* data,
+ HttpResponseHeaders* headers);
+
URLRequestDataJob(URLRequest* request, NetworkDelegate* network_delegate);
// URLRequestSimpleJob
« no previous file with comments | « net/net.gypi ('k') | net/url_request/url_request_data_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698