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

Unified Diff: components/gcm_driver/proto/gcm_channel_status.proto

Issue 530253002: Add GCMChannelStatusRequest to talk with server for all users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn build Created 6 years, 3 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 | « components/gcm_driver/proto/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/proto/gcm_channel_status.proto
diff --git a/components/gcm_driver/proto/gcm_channel_status.proto b/components/gcm_driver/proto/gcm_channel_status.proto
new file mode 100644
index 0000000000000000000000000000000000000000..4013feed1a5c98d1651a379d27246fa7a64a9b11
--- /dev/null
+++ b/components/gcm_driver/proto/gcm_channel_status.proto
@@ -0,0 +1,34 @@
+// 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 gcm_proto;
+
+// Flags for enabling the GCM feature.
+message GcmChannelFlags {
+ optional bool enabled = 1;
+}
+
+// This request allows an unauthenticated client to check the status of the
+// experiments which do not require user authentication. The status of an
+// experiment for a specific client can be determined based on the user agent
+// string and/or the client id sent in the HTTPS POST request.
+message ExperimentStatusRequest {
+ // Enumerates the experiments for which the status should be returned. An
+ // experiment name must be the same as one of the field names specified in
+ // ExperimentsSpecifics. See sync/protocol/experiments_specifics.proto.
+ repeated string experiment_name = 1;
+}
+
+// Response to an experiment status request.
+message ExperimentStatusResponse {
+ // Minimal time to wait before issuing another request.
+ optional int32 poll_interval_seconds = 1 [default = 3600];
+
+ // This flag is returned if and only if the client asks for gcm_channel.
+ optional GcmChannelFlags gcm_channel = 2;
+}
« no previous file with comments | « components/gcm_driver/proto/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698