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

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

Issue 248803003: ServiceWorker: Store registration data in ServiceWorkerDatabase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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.proto
diff --git a/content/browser/service_worker/service_worker_database.proto b/content/browser/service_worker/service_worker_database.proto
new file mode 100644
index 0000000000000000000000000000000000000000..8e3784056b70d0cb4827728a0fef2a4d4561039b
--- /dev/null
+++ b/content/browser/service_worker/service_worker_database.proto
@@ -0,0 +1,31 @@
+// Copyright 2014 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.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package content;
+
+message ServiceWorkerRegistrationData {
+ required int64 registration_id = 1;
+ required string scope_url = 2;
+ required string script_url = 3;
+
+ // Versions are first stored once they successfully install and become the
+ // waiting version. Then they are updated when they transition to the active
+ // version.
+ required int64 version_id = 5;
+
+ optional bool is_active = 6;
+ optional bool has_fetch_handler = 7;
+
+ // Serialized by Time::ToInternalValue().
+ optional int64 last_update_check_time = 8;
+}
+
+message ServiceWorkerResourceRecord {
+ required int64 resource_id = 1;
+ optional string url = 2;
michaeln 2014/04/24 00:35:04 since this is the first cut at it (and there is no
nhiroki 2014/04/24 05:57:30 Hmm... if we mark them as required, - need to set
+}

Powered by Google App Engine
This is Rietveld 408576698