Rename GetIconID to GetIconId
[chromium-blink-merge.git] / components / data_reduction_proxy / proto / data_store.proto
blob4231520c08008040a83206ee2aa6538f41c092a4
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.
4 //
5 // Protocol buffer definitions for Data Reduction Proxy data stored in LevelDB.
7 syntax = "proto2";
9 option optimize_for = LITE_RUNTIME;
11 package data_reduction_proxy;
13 enum ConnectionType {
14   CONNECTION_UNKNOWN = 0;
15   CONNECTION_ETHERNET = 1;
16   CONNECTION_WIFI = 2;
17   CONNECTION_2G = 3;
18   CONNECTION_3G = 4;
19   CONNECTION_4G = 5;
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;