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

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

Issue 2575323002: Store data reduction proxy server in a separate class (Closed)
Patch Set: ryansturm comments Created 4 years 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/common/data_reduction_proxy_util.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 DEPRECATED_refresh_time = 2 [deprecated = true];
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. 28 // Configuration information for reporting pageload metrics.
29 optional PageloadMetricsConfig pageload_metrics_config = 5; 29 optional PageloadMetricsConfig pageload_metrics_config = 5;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 message ProxyServer { 87 message ProxyServer {
88 // The scheme of the proxy server. 88 // The scheme of the proxy server.
89 enum ProxyScheme { 89 enum ProxyScheme {
90 // The proxy scheme is unspecified. 90 // The proxy scheme is unspecified.
91 UNSPECIFIED = 0; 91 UNSPECIFIED = 0;
92 // HTTP 92 // HTTP
93 HTTP = 1; 93 HTTP = 1;
94 // HTTPS 94 // HTTPS
95 HTTPS = 2; 95 HTTPS = 2;
96 // HTTPS over QUIC 96 // HTTPS over QUIC
97 QUIC = 3; 97 DEPRECATED_QUIC = 3 [deprecated = true];
98 }
99
100 // The deployment type of the proxy server.
101 enum ProxyType {
102 // The proxy type is unspecified.
103 UNSPECIFIED_TYPE = 0;
104 // Core Google datacenter.
105 CORE = 1;
98 } 106 }
99 107
100 // The scheme for the proxy server. 108 // The scheme for the proxy server.
101 optional ProxyScheme scheme = 1; 109 optional ProxyScheme scheme = 1;
102 // The host name for the proxy server. 110 // The host name for the proxy server.
103 optional string host = 2; 111 optional string host = 2;
104 // The port number for the proxy server. 112 // The port number for the proxy server.
105 optional int32 port = 3; 113 optional int32 port = 3;
114 // The type for the proxy server.
115 optional ProxyType type = 4;
106 } 116 }
107 117
108 // Request object to create a client configuration object. 118 // Request object to create a client configuration object.
109 message CreateClientConfigRequest { 119 message CreateClientConfigRequest {
110 // A previous per-session key that was assigned by the service. 120 // A previous per-session key that was assigned by the service.
111 optional string session_key = 1; 121 optional string session_key = 1;
112 122
113 // Build version information. 123 // Build version information.
114 optional VersionInfo version_info = 2; 124 optional VersionInfo version_info = 2;
115 } 125 }
116 126
117 // Build version information. 127 // Build version information.
118 message VersionInfo { 128 message VersionInfo {
119 // The client's platform type. See 129 // The client's platform type. See
120 // components/data_reduction_proxy/core/common/data_reduction_proxy_util.h for 130 // components/data_reduction_proxy/core/common/data_reduction_proxy_util.h for
121 // allowed strings in CLIENT_ENUMS_LIST. 131 // allowed strings in CLIENT_ENUMS_LIST.
122 optional string client = 1; 132 optional string client = 1;
123 133
124 // The build number, e.g. 2171 134 // The build number, e.g. 2171
125 optional int32 build = 2; 135 optional int32 build = 2;
126 136
127 // The patch number of the chromium client: always a non-negative integer. 137 // The patch number of the chromium client: always a non-negative integer.
128 optional int32 patch = 3; 138 optional int32 patch = 3;
129 139
130 // The production channel, e.g. "canary", "dev", "beta", "stable". 140 // The production channel, e.g. "canary", "dev", "beta", "stable".
131 optional string channel = 4; 141 optional string channel = 4;
132 } 142 }
OLDNEW
« no previous file with comments | « components/data_reduction_proxy/core/common/data_reduction_proxy_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698