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

Unified Diff: content/browser/service_worker/service_worker_response_type.h

Issue 2897063002: Network service: Implement URLLoader chaining for interceptors (Closed)
Patch Set: documentation 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/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_

Powered by Google App Engine
This is Rietveld 408576698