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

Unified Diff: components/precache/core/proto/unfinished_work.proto

Issue 1961153003: Add pause/resume functionality to precache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix Created 4 years, 7 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/precache/core/precache_session_table_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/precache/core/proto/unfinished_work.proto
diff --git a/components/precache/core/proto/unfinished_work.proto b/components/precache/core/proto/unfinished_work.proto
new file mode 100644
index 0000000000000000000000000000000000000000..deb6329bbf6c627820cbd379e62312b5da9ecd18
--- /dev/null
+++ b/components/precache/core/proto/unfinished_work.proto
@@ -0,0 +1,54 @@
+// Copyright 2016 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.
+
+syntax = "proto2";
+
+import "precache.proto";
+
+package precache;
+
+// Chrome requires this.
+option optimize_for = LITE_RUNTIME;
+
+message TopHost {
+ // The host name of a top host.
+ optional string hostname = 1;
+};
+
+message PrecacheManifestURL {
+ // The URL that provides a manifest.
+ optional string url = 1;
+};
+
+// Information about the precache work that needs to be completed.
+message PrecacheUnfinishedWork {
+ // Top hosts for which to fetch manifests.
+ repeated TopHost top_host = 1;
+
+ optional PrecacheConfigurationSettings config_settings = 2;
+
+ // Manifest URLs remaining to be fetched.
+ repeated PrecacheManifestURL manifest = 3;
+
+ // Resource URLs remaining to be fetched.
+ repeated PrecacheResource resource = 4;
+
+ // Tally of the total number of bytes contained in URL fetches, including
+ // config, manifests, and resources. This the number of bytes as they would be
+ // compressed over the network.
+ optional uint64 total_bytes = 5;
+
+ // Tally of the total number of bytes received over the network from URL
+ // fetches (the same ones as in total_response_bytes_). This includes response
+ // headers and intermediate responses such as 30xs.
+ optional uint64 network_bytes = 6;
+
+ // The total number of manifest URLs that the precache session started with.
+ optional uint64 num_manifest_urls = 7;
+
+ // The internal value of a base::Time object representing the precache
+ // session start time. The start time is the time just before when top hosts
+ // are requested.
+ optional int64 start_time = 8;
+};
« no previous file with comments | « components/precache/core/precache_session_table_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698