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

Unified Diff: mojo/fetcher/base_application_fetcher.cc

Issue 1356623002: mojo: Add DataURLFetcher for processing data: urls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: mojo/fetcher/base_application_fetcher.cc
diff --git a/mojo/fetcher/base_application_fetcher.cc b/mojo/fetcher/base_application_fetcher.cc
index 68909b578f94a67efe93c62cdafe9223e8b28895..b6b5730c7587b61ab52b011c21fc50e7d9adfe8a 100644
--- a/mojo/fetcher/base_application_fetcher.cc
+++ b/mojo/fetcher/base_application_fetcher.cc
@@ -5,6 +5,7 @@
#include "mojo/fetcher/base_application_fetcher.h"
#include "mojo/fetcher/about_fetcher.h"
+#include "mojo/fetcher/data_fetcher.h"
#include "mojo/fetcher/local_fetcher.h"
#include "mojo/fetcher/network_fetcher.h"
#include "mojo/fetcher/switches.h"
@@ -50,6 +51,11 @@ void BaseApplicationFetcher::FetchRequest(
return;
}
+ if (url.SchemeIs(url::kDataScheme)) {
+ DataFetcher::Start(url, loader_callback);
+ return;
+ }
+
GURL resolved_url = ResolveURL(url);
if (resolved_url.SchemeIsFile()) {
« no previous file with comments | « mojo/fetcher/DEPS ('k') | mojo/fetcher/data_fetcher.h » ('j') | mojo/fetcher/data_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698