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

Unified Diff: content/child/request_extra_data.h

Issue 2860903006: Handle webuis when using the network service. (Closed)
Patch Set: nits Created 3 years, 7 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/request_extra_data.h
diff --git a/content/child/request_extra_data.h b/content/child/request_extra_data.h
index 730af141d4f7489fce2013cdf3ad43fa364dfda4..214ba6ffdb24f9b11cf7ce4b05d49f7c7474f94f 100644
--- a/content/child/request_extra_data.h
+++ b/content/child/request_extra_data.h
@@ -12,6 +12,7 @@
#include "content/child/web_url_loader_impl.h"
#include "content/common/content_export.h"
#include "content/common/navigation_params.h"
+#include "content/common/url_loader_factory.mojom.h"
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
@@ -167,6 +168,13 @@ class CONTENT_EXPORT RequestExtraData
navigation_initiated_by_renderer_ = navigation_by_renderer;
}
+ mojom::URLLoaderFactory* url_loader_factory_override() const {
scottmg 2017/05/05 19:27:43 Remove the content/child files as they're in the o
jam 2017/05/05 22:19:40 yep will merge when it lands
+ return url_loader_factory_override_;
+ }
+ void set_url_loader_factory_override(mojom::URLLoaderFactory* factory) {
+ url_loader_factory_override_ = factory;
+ }
+
void CopyToResourceRequest(ResourceRequest* request) const;
private:
@@ -191,6 +199,7 @@ class CONTENT_EXPORT RequestExtraData
bool download_to_network_cache_only_;
bool block_mixed_plugin_content_;
bool navigation_initiated_by_renderer_;
+ mojom::URLLoaderFactory* url_loader_factory_override_;
DISALLOW_COPY_AND_ASSIGN(RequestExtraData);
};

Powered by Google App Engine
This is Rietveld 408576698