1 // Copyright 2013 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.
5 #ifndef CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_
8 // An interface to manipulate browser keepalive. Subclasses should ensure that
9 // keepalive is cleared when the object is destructed.
10 class KeepAliveService
{
12 virtual ~KeepAliveService() {}
13 virtual void EnsureKeepAlive() = 0;
14 virtual void FreeKeepAlive() = 0;
17 #endif // CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_