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

Side by Side Diff: chrome/browser/lifetime/keep_alive_options.h

Issue 1708343002: Add ScopedKeepAlive to c/b/lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 10 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.cc ('k') | chrome/browser/lifetime/keep_alive_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698