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

Unified Diff: third_party/cacheinvalidation/src/proto/types.proto

Issue 1162033004: Pull cacheinvalidations code directory into chromium repo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « third_party/cacheinvalidation/src/proto/java_client.proto ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cacheinvalidation/src/proto/types.proto
diff --git a/third_party/cacheinvalidation/src/proto/types.proto b/third_party/cacheinvalidation/src/proto/types.proto
new file mode 100644
index 0000000000000000000000000000000000000000..e1bba022ded616046ef44023478538f56a003742
--- /dev/null
+++ b/third_party/cacheinvalidation/src/proto/types.proto
@@ -0,0 +1,68 @@
+// Copyright 2011 Google Inc.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Enums definitions for main types in the cache invalidation system.
+
+syntax = "proto2";
+
+
+package com.google.protos.ipc.invalidation;
+
+option optimize_for = LITE_RUNTIME;
+
+// The type of client / application.
+message ClientType {
+ enum Type {
+ INTERNAL = 1;
+ TEST = 2; // Uncontrolled client space for use by anyone for testing.
+ DEMO = 4; // A demo client type that can be used for testing.
+
+ // Numbers below 1000 are reserved for internal use.
+ CHROME_SYNC = 1004;
+ CHROME_SYNC_ANDROID = 1018;
+ CHROME_SYNC_IOS = 1038;
+ CHROME_SYNC_GCM_DESKTOP = 1055;
+ CHROME_SYNC_GCM_IOS = 1056;
+ }
+ optional Type type = 1;
+}
+
+// The property that hosts the object.
+message ObjectSource {
+ //
+ // NOTE: This enum MUST be kept in sync with ObjectIdP.Source in
+ // internal.proto.
+ //
+ enum Type {
+ INTERNAL = 1;
+ TEST = 2; // Uncontrolled object space for use by anyone for testing.
+ DEMO = 4; // A demo object source that can be used for testing.
+
+ // Numbers below 1000 are reserved for internal use.
+ CHROME_SYNC = 1004;
+ COSMO_CHANGELOG = 1014;
+ CHROME_COMPONENTS = 1025;
+ CHROME_PUSH_MESSAGING = 1030;
+ }
+ optional Type type = 1;
+}
+
+// A dummy message to enclose various enum constant declarations.
+message Constants {
+ // Constants related to object versions.
+ enum ObjectVersion {
+ // Version number used to indicate that an object's version is unknown.
+ UNKNOWN = 0;
+ }
+}
« no previous file with comments | « third_party/cacheinvalidation/src/proto/java_client.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698