OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ | |
6 #define CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ | |
7 | |
8 struct KeepAliveOptions { | |
9 // Should be descriptive of what the KeepAlive's lifetime is tied to, to help | |
10 // with debugging. | |
11 const char* label; | |
sky
2016/02/22 21:26:05
Can you explain why a string is better than an enu
dgn
2016/02/23 12:58:06
The idea was that each call site would use a descr
| |
12 | |
13 // TODO(dgn) | |
14 // When registering a token, we should add indications of which kind of | |
15 // optimizations are allowed during the KeepAlive's lifetime. This will allow | |
16 // to have more info about the state of the browser to optimize the resource | |
17 // consumption. | |
18 }; | |
19 | |
20 #endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ | |
OLD | NEW |