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
3 // found in the LICENSE file.
5 // Protocol buffer definitions for Data Reduction Proxy data stored in LevelDB.
9 option optimize_for = LITE_RUNTIME;
11 package data_reduction_proxy;
14 CONNECTION_UNKNOWN = 0;
15 CONNECTION_ETHERNET = 1;
20 CONNECTION_BLUETOOTH = 6;
23 // Contains data usage for an interval of time.
24 message DataUsageBucket {
25 repeated PerConnectionDataUsage connection_usage = 1;
26 optional int64 last_updated_timestamp = 2;
29 message PerConnectionDataUsage {
30 required ConnectionType connection_type = 1;
31 repeated PerSiteDataUsage site_usage = 2;
34 // Data usage for a specific site.
35 message PerSiteDataUsage {
36 required string site_url = 1;
37 required int64 data_used = 2;
38 required int64 original_size = 3;