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

Side by Side Diff: components/data_reduction_proxy/proto/client_config.proto

Issue 2076663004: Control data saver pingback reporting fraction with protobuf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 syntax = "proto2"; 5 syntax = "proto2";
6 6
7 option optimize_for = LITE_RUNTIME; 7 option optimize_for = LITE_RUNTIME;
8 8
9 package data_reduction_proxy; 9 package data_reduction_proxy;
10 10
11 // The client configuration information for using the Data Saver service. 11 // The client configuration information for using the Data Saver service.
12 message ClientConfig { 12 message ClientConfig {
13 // An opaque per-session key assigned by the server which permits use of the 13 // An opaque per-session key assigned by the server which permits use of the
14 // Data Saver HTTP proxy servers. 14 // Data Saver HTTP proxy servers.
15 optional string session_key = 1; 15 optional string session_key = 1;
16 // The time at which the client should request a new configuration. The 16 // The time at which the client should request a new configuration. The
17 // session_key is guaranteed to be valid through this time and may be valid 17 // session_key is guaranteed to be valid through this time and may be valid
18 // for some time thereafter. 18 // for some time thereafter.
19 optional Timestamp refresh_time = 2; 19 optional Timestamp refresh_time = 2;
20 // The proxy configuration the client should use to connect to the Data Saver 20 // The proxy configuration the client should use to connect to the Data Saver
21 // service. 21 // service.
22 optional ProxyConfig proxy_config = 3; 22 optional ProxyConfig proxy_config = 3;
23 // The duration after which the client should request a new configuration. The 23 // The duration after which the client should request a new configuration. The
24 // session_key is guaranteed to be valid through this time and may be valid 24 // session_key is guaranteed to be valid through this time and may be valid
25 // for some time thereafter. If both refresh_duration and refresh_time are 25 // for some time thereafter. If both refresh_duration and refresh_time are
26 // present, refresh_duration should take priority. 26 // present, refresh_duration should take priority.
27 optional Duration refresh_duration = 4; 27 optional Duration refresh_duration = 4;
28 // Configuration information for reporting pageload metrics.
29 optional PageloadMetricsConfig pageload_metrics_config = 5;
30 }
31
32 // The configuration for reporting pageload metrics.
33 message PageloadMetricsConfig {
34 // The fraction of pageloads for which to report pageload metrics.
35 optional float reporting_fraction = 1;
28 } 36 }
29 37
30 // N.B.: 38 // N.B.:
31 // The configuration service that sends the ClientConfig uses Timestamp and 39 // The configuration service that sends the ClientConfig uses Timestamp and
32 // Duration to conform to Google API standards. These proto messages should 40 // Duration to conform to Google API standards. These proto messages should
33 // live in a shared location in the Chromium tree, but for now we duplicate 41 // live in a shared location in the Chromium tree, but for now we duplicate
34 // them here. 42 // them here.
35 43
36 // A Timestamp represents a point in time independent of any time zone 44 // A Timestamp represents a point in time independent of any time zone
37 // or calendar, represented as seconds and fractions of seconds at 45 // or calendar, represented as seconds and fractions of seconds at
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 optional string host = 2; 103 optional string host = 2;
96 // The port number for the proxy server. 104 // The port number for the proxy server.
97 optional int32 port = 3; 105 optional int32 port = 3;
98 } 106 }
99 107
100 // Request object to create a client configuration object. 108 // Request object to create a client configuration object.
101 message CreateClientConfigRequest { 109 message CreateClientConfigRequest {
102 // A previous per-session key that was assigned by the service. 110 // A previous per-session key that was assigned by the service.
103 optional string session_key = 1; 111 optional string session_key = 1;
104 } 112 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698