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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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_database.h
diff --git a/content/browser/service_worker/service_worker_database.h b/content/browser/service_worker/service_worker_database.h
index c142203eac63501c077559d1fe08ba96d6dfad69..3b7f29b8b4d1eddc74c836ad4d93fd696f2adc6b 100644
--- a/content/browser/service_worker/service_worker_database.h
+++ b/content/browser/service_worker/service_worker_database.h
@@ -23,6 +23,7 @@
#include "content/common/origin_trials/trial_token_validator.h"
#include "content/common/service_worker/service_worker_status_code.h"
#include "content/common/service_worker/service_worker_types.h"
+#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerUpdateViaCache.h"
#include "url/gurl.h"
#include "url/origin.h"
@@ -35,7 +36,7 @@ class DB;
class Env;
class Status;
class WriteBatch;
-}
+} // namespace leveldb
namespace content {
@@ -66,6 +67,7 @@ class CONTENT_EXPORT ServiceWorkerDatabase {
// These values are immutable for the life of a registration.
int64_t registration_id;
GURL scope;
+ blink::WebServiceWorkerUpdateViaCache update_via_cache;
// Versions are first stored once they successfully install and become
// the waiting version. Then transition to the active version. The stored

Powered by Google App Engine
This is Rietveld 408576698