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

Unified Diff: content/browser/background_sync/background_sync.proto

Issue 950343006: [BackgroundSync] Initial land of the BackgroundSyncManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mapped registrations, more tests, register overwrites existing, unique ids for registrations Created 5 years, 9 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/background_sync/background_sync.proto
diff --git a/content/browser/background_sync/background_sync.proto b/content/browser/background_sync/background_sync.proto
new file mode 100644
index 0000000000000000000000000000000000000000..5e081f63261cc6c97fa8a700e3049f631a9d8426
--- /dev/null
+++ b/content/browser/background_sync/background_sync.proto
@@ -0,0 +1,20 @@
+// Copyright 2015 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 BackgroundSyncRegistrationProto {
+ required int64 id = 1;
+ required string name = 2;
+ optional int64 min_period = 3;
davidben 2015/03/25 16:01:09 Nit: Since you're storing it as 0 in-memory and ha
jkarlin 2015/03/25 19:24:17 Acknowledged.
+}
+
+message BackgroundSyncRegistrationsProto {
+ repeated BackgroundSyncRegistrationProto registration = 1;
+ required int64 registration_id_counter = 2;
davidben 2015/03/25 16:01:09 Nit: next_registration_id might be clearer. (I fee
jkarlin 2015/03/25 19:24:17 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698