Index: content/public/browser/render_process_host.h |
diff --git a/content/public/browser/render_process_host.h b/content/public/browser/render_process_host.h |
index b2b7df69039177c494fc9f48df07cbd05bc2cf46..7415b020bdd2416e83f50160f40936bed941b3de 100644 |
--- a/content/public/browser/render_process_host.h |
+++ b/content/public/browser/render_process_host.h |
@@ -10,6 +10,7 @@ |
#include <list> |
+#include "base/callback_forward.h" |
#include "base/id_map.h" |
#include "base/memory/ptr_util.h" |
#include "base/process/kill.h" |
@@ -18,6 +19,7 @@ |
#include "content/common/content_export.h" |
#include "ipc/ipc_channel_proxy.h" |
#include "ipc/ipc_sender.h" |
+#include "mojo/public/cpp/bindings/interface_request.h" |
#include "ui/gfx/native_widget_types.h" |
class GURL; |
@@ -47,6 +49,7 @@ struct GlobalRequestID; |
namespace mojom { |
class Renderer; |
+class URLLoaderFactory; |
} |
// Interface that represents the browser side of the browser <-> renderer |
@@ -57,6 +60,8 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
public base::SupportsUserData { |
public: |
typedef IDMap<RenderProcessHost>::iterator iterator; |
+ using MojoURLLoaderFactoryGetter = |
+ base::Callback<void(mojo::InterfaceRequest<mojom::URLLoaderFactory>)>; |
// Details for RENDERER_PROCESS_CLOSED notifications. |
struct RendererClosedDetails { |
@@ -331,6 +336,9 @@ class CONTENT_EXPORT RenderProcessHost : public IPC::Sender, |
// MockRenderProcessHost usage in tests. |
virtual mojom::Renderer* GetRendererInterface() = 0; |
+ // Creates a MojoURLLoaderFactoryGetter associated with the process. |
+ virtual MojoURLLoaderFactoryGetter CreateURLLoaderFactoryGetter() = 0; |
+ |
// Returns the current number of active views in this process. Excludes |
// any RenderViewHosts that are swapped out. |
size_t GetActiveViewCount(); |