Chromium Code Reviews| 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[32]; | |
|
Bernhard Bauer
2016/02/22 18:19:38
I think const char* should work here; no need to a
dgn
2016/02/22 19:07:19
Thanks, done. If it's longer the compiler would de
| |
| 12 | |
| 13 // TODO(dgn) | |
| 14 // When registering a token, indictations of which kind of optimizations would | |
|
Bernhard Bauer
2016/02/22 18:19:38
Nit: "indications".
Also, the passive voice is us
dgn
2016/02/22 19:07:19
Done.
| |
| 15 // be allowed during the KeepAlive's lifetime should be provided. This allows | |
| 16 // to take some liberties with the state of the browser to optimize | |
| 17 // the resource consumption. | |
| 18 }; | |
| 19 | |
| 20 #endif // CHROME_BROWSER_LIFETIME_KEEP_ALIVE_OPTIONS_H_ | |
| OLD | NEW |