| 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..391324d3c5a0c045e515e3f00d154e9ed168509b 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. Returns false if failed.
|
| +using MojoURLLoaderFactoryGetter =
|
| + base::Callback<bool(mojo::InterfaceRequest<mojom::URLLoaderFactory>)>;
|
| +
|
| // To dispatch fetch request from browser to child process.
|
| struct CONTENT_EXPORT ServiceWorkerFetchRequest {
|
| ServiceWorkerFetchRequest();
|
|
|