Index: content/common/service_worker/service_worker_types.h |
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h |
index 4dbe26f8e7ee0b13233ba9d247099be503017a66..95e5cf5ccd9af55a088612e735bbfa36d7ad7be4 100644 |
--- a/content/common/service_worker/service_worker_types.h |
+++ b/content/common/service_worker/service_worker_types.h |
@@ -10,6 +10,7 @@ |
#include <map> |
#include <string> |
+#include "base/callback.h" |
#include "base/strings/string_util.h" |
#include "base/time/time.h" |
#include "content/common/content_export.h" |
@@ -17,6 +18,7 @@ |
#include "content/public/common/referrer.h" |
#include "content/public/common/request_context_frame_type.h" |
#include "content/public/common/request_context_type.h" |
+#include "mojo/public/cpp/bindings/interface_request.h" |
#include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientType.h" |
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponseError.h" |
@@ -29,6 +31,10 @@ |
namespace content { |
+namespace mojom { |
+class URLLoaderFactory; |
+} // namespace mojom |
+ |
// Indicates the document main thread ID in the child process. This is used for |
// messaging between the browser process and the child process. |
static const int kDocumentMainThreadId = 0; |
@@ -136,6 +142,11 @@ using ServiceWorkerHeaderMap = |
using ServiceWorkerHeaderList = std::vector<std::string>; |
+// Callback function type to get a mojom::URLLoaderFactory interface by passing |
+// URLLoaderFactoryRequest. |
+using MojoURLLoaderFactoryGetter = |
+ base::Callback<void(mojo::InterfaceRequest<mojom::URLLoaderFactory>)>; |
+ |
// To dispatch fetch request from browser to child process. |
struct CONTENT_EXPORT ServiceWorkerFetchRequest { |
ServiceWorkerFetchRequest(); |