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

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

Issue 1866483002: Add a new priority level, THROTTLED, below IDLE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusted predictor priorities. Created 4 years, 2 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_tables.h. 7 // resource_prefetch_predictor_tables.h.
8 8
9 syntax = "proto2"; 9 syntax = "proto2";
10 10
(...skipping 22 matching lines...) Expand all
33 RESOURCE_TYPE_XHR = 13; 33 RESOURCE_TYPE_XHR = 13;
34 RESOURCE_TYPE_PING = 14; 34 RESOURCE_TYPE_PING = 14;
35 RESOURCE_TYPE_SERVICE_WORKER = 15; 35 RESOURCE_TYPE_SERVICE_WORKER = 15;
36 RESOURCE_TYPE_CSP_REPORT = 16; 36 RESOURCE_TYPE_CSP_REPORT = 16;
37 RESOURCE_TYPE_PLUGIN_RESOURCE = 17; 37 RESOURCE_TYPE_PLUGIN_RESOURCE = 17;
38 RESOURCE_TYPE_LAST_TYPE = 18; 38 RESOURCE_TYPE_LAST_TYPE = 18;
39 } 39 }
40 40
41 // Mirrors net::RequestPriority 41 // Mirrors net::RequestPriority
42 enum Priority { 42 enum Priority {
43 REQUEST_PRIORITY_IDLE = 0; 43 REQUEST_PRIORITY_THROTTLED = 0;
44 REQUEST_PRIORITY_LOWEST = 1; 44 REQUEST_PRIORITY_IDLE = 1;
45 REQUEST_PRIORITY_LOW = 2; 45 REQUEST_PRIORITY_LOWEST = 2;
46 REQUEST_PRIORITY_MEDIUM = 3; 46 REQUEST_PRIORITY_LOW = 3;
47 REQUEST_PRIORITY_HIGHEST = 4; 47 REQUEST_PRIORITY_MEDIUM = 4;
48 REQUEST_PRIORITY_HIGHEST = 5;
48 } 49 }
49 50
50 optional string resource_url = 1; 51 optional string resource_url = 1;
51 optional ResourceType resource_type = 2; 52 optional ResourceType resource_type = 2;
52 optional uint32 number_of_hits = 3; 53 optional uint32 number_of_hits = 3;
53 optional uint32 number_of_misses = 4; 54 optional uint32 number_of_misses = 4;
54 optional uint32 consecutive_misses = 5; 55 optional uint32 consecutive_misses = 5;
55 optional double average_position = 6; 56 optional double average_position = 6;
56 optional Priority priority = 7; 57 optional Priority priority = 7;
57 optional bool has_validators = 8; 58 optional bool has_validators = 8;
(...skipping 17 matching lines...) Expand all
75 optional uint32 number_of_hits = 2; 76 optional uint32 number_of_hits = 2;
76 optional uint32 number_of_misses = 3; 77 optional uint32 number_of_misses = 3;
77 optional uint32 consecutive_misses = 4; 78 optional uint32 consecutive_misses = 4;
78 } 79 }
79 80
80 // Main frame URL or host. 81 // Main frame URL or host.
81 optional string primary_key = 1; 82 optional string primary_key = 1;
82 optional uint64 last_visit_time = 2; 83 optional uint64 last_visit_time = 2;
83 repeated RedirectStat redirect_endpoints = 3; 84 repeated RedirectStat redirect_endpoints = 3;
84 } 85 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698