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

Side by Side Diff: chrome/browser/predictors/resource_prefetch_predictor.proto

Issue 2355273002: Redirect handling in the resource_prefetch_predictor. (Closed)
Patch Set: Minor changes Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Protocol buffers used for storing in SQLite. 5 // Protocol buffers used for storing in SQLite.
6 // CAUTION: When any change is done here, bump kDatabaseVersion in 6 // CAUTION: When any change is done here, bump kDatabaseVersion in
7 // resource_prefetch_predictor.h. 7 // resource_prefetch_predictor.h.
Benoit L 2016/09/26 11:18:36 Oops, can you correct my mistake here as well? Th
alexilin 2016/09/26 12:14:54 Done.
8 8
9 syntax = "proto2"; 9 syntax = "proto2";
10 10
11 package chrome_browser_predictors; 11 package chrome_browser_predictors;
12 12
13 // Required in Chrome. 13 // Required in Chrome.
14 option optimize_for = LITE_RUNTIME; 14 option optimize_for = LITE_RUNTIME;
15 15
16 message Metadata { 16 message Metadata {
17 optional string main_page_url = 1; 17 optional string main_page_url = 1;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 optional string resource_url = 1; 54 optional string resource_url = 1;
55 optional ResourceType resource_type = 2; 55 optional ResourceType resource_type = 2;
56 optional uint32 number_of_hits = 3; 56 optional uint32 number_of_hits = 3;
57 optional uint32 number_of_misses = 4; 57 optional uint32 number_of_misses = 4;
58 optional uint32 consecutive_misses = 5; 58 optional uint32 consecutive_misses = 5;
59 optional double average_position = 6; 59 optional double average_position = 6;
60 optional Priority priority = 7; 60 optional Priority priority = 7;
61 optional bool has_validators = 8; 61 optional bool has_validators = 8;
62 optional bool always_revalidate = 9; 62 optional bool always_revalidate = 9;
63 } 63 }
64
65 message RedirectData {
66 // Represents single redirect chain endpoint
Benoit L 2016/09/26 11:18:36 nit: Represents a single redirect chain endpoint.
pasko 2016/09/26 12:28:15 .. except that it is a mapping of origin to all po
alexilin 2016/09/26 15:38:28 This comment refers to RedirectStat message, not R
pasko 2016/09/26 15:58:22 Ah oh, agreed. I was confused because of lack of c
alexilin 2016/09/27 14:52:45 Added comment for the RedirectData. 'git cl format
67 message RedirectStat {
68 optional string url = 1;
69 optional uint32 number_of_hits = 2;
70 optional uint32 number_of_misses = 3;
71 optional uint32 consecutive_misses = 4;
72 }
73
74 optional string primary_key = 1;
75 optional uint64 last_visit_time = 2;
76 repeated RedirectStat redirects = 3;
pasko 2016/09/22 14:27:09 This proto would benefit from comments and probabl
alexilin 2016/09/22 16:48:19 Collection of endpoints. Ok, let's agree on the na
pasko 2016/09/26 12:28:15 I would suggest redirect_endpoints
alexilin 2016/09/27 14:52:45 Renamed redirects -> redirect_endpoints. Leave fur
77 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698