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

Unified Diff: components/data_reduction_proxy/proto/data_store.proto

Issue 1173343009: LevelDB storage for data reduction proxy to store data usage stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove wrong const Created 5 years, 5 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/data_reduction_proxy/proto/BUILD.gn ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/proto/data_store.proto
diff --git a/components/data_reduction_proxy/proto/data_store.proto b/components/data_reduction_proxy/proto/data_store.proto
new file mode 100644
index 0000000000000000000000000000000000000000..a430ef49f28ac506332752fb137c9a367f558642
--- /dev/null
+++ b/components/data_reduction_proxy/proto/data_store.proto
@@ -0,0 +1,24 @@
+// Copyright 2015 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.
+//
+// Protocol buffer definitions for Data Reduction Proxy data stored in LevelDB.
+
+syntax = "proto2";
+
+option optimize_for = LITE_RUNTIME;
+
+package data_reduction_proxy;
+
+// Contains data usage for an interval of time.
+message DataUsageBucket {
+ repeated PerSiteDataUsage site_usage = 1;
+ optional int64 last_updated_timestamp = 2;
+}
+
+// Data usage for a specific site.
+message PerSiteDataUsage {
+ required string site_url = 1;
+ required int64 original_content_length = 2;
+ required int64 content_length = 3;
+}
« no previous file with comments | « components/data_reduction_proxy/proto/BUILD.gn ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698