summaryrefslogtreecommitdiffstats
path: root/apps/apps_client.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-25 15:17:27 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-25 15:17:27 +0000
commit9a718b2ecbb7fc595d0b98dba00ff662a1f331b7 (patch)
tree96489df558e3dc478bb82e596e7c5e1cf298480d /apps/apps_client.h
parent72892d8f094f350796c1bee52a8ba9e6a3b227bf (diff)
downloadchromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.zip
chromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.tar.gz
chromium_src-9a718b2ecbb7fc595d0b98dba00ff662a1f331b7.tar.bz2
Rename Start/EndKeepAlive to Increment/DecrementKeepAliveCount
Keep alive is implemented as a reference count. This name makes it clear that a call to EndKeepAlive does not immediately end keep-alive, which came up in code review. BUG=345918 TEST=compiles, no functional changes Review URL: https://codereview.chromium.org/176363002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253165 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/apps_client.h')
-rw-r--r--apps/apps_client.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/apps_client.h b/apps/apps_client.h
index bd5474c..9af8afb 100644
--- a/apps/apps_client.h
+++ b/apps/apps_client.h
@@ -37,10 +37,10 @@ class AppsClient {
content::BrowserContext* context,
const extensions::Extension* extension) = 0;
- // Tells the embedding application to stay running. The application may close
- // after a matching number of calls to EndKeepAlive() are made.
- virtual void StartKeepAlive() = 0;
- virtual void EndKeepAlive() = 0;
+ // A positive keep-alive count is a request for the embedding application to
+ // keep running after all windows are closed. The count starts at zero.
+ virtual void IncrementKeepAliveCount() = 0;
+ virtual void DecrementKeepAliveCount() = 0;
// Return the apps client.
static AppsClient* Get();