Index: content/browser/service_worker/service_worker_response_type.h |
diff --git a/content/browser/service_worker/service_worker_response_type.h b/content/browser/service_worker/service_worker_response_type.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c8e15b9a58ff7793a091e87e48be4d05fe552b02 |
--- /dev/null |
+++ b/content/browser/service_worker/service_worker_response_type.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_RESPONSE_TYPE_H_ |
+#define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_RESPONSE_TYPE_H_ |
+ |
+namespace content { |
+ |
+// Response handling type, used in URL {request,loader} jobs. |
+enum ServiceWorkerResponseType { |
+ NOT_DETERMINED, |
+ FAIL_DUE_TO_LOST_CONTROLLER, |
+ FALLBACK_TO_NETWORK, |
+ FALLBACK_TO_RENDERER, // Use this when falling back with CORS check |
+ FORWARD_TO_SERVICE_WORKER |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_RESPONSE_TYPE_H_ |