| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_KEEP_ALIVE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_APP_LIST_KEEP_ALIVE_SERVICE_H_ | 6 #define CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_ |
| 7 | 7 |
| 8 // An interface to manipulate browser keepalive. Subclasses should ensure that | 8 // An interface to manipulate browser keepalive. Subclasses should ensure that |
| 9 // keepalive is cleared when the object is destructed. | 9 // keepalive is cleared when the object is destructed. |
| 10 class KeepAliveService { | 10 class KeepAliveService { |
| 11 public: | 11 public: |
| 12 virtual ~KeepAliveService() {} | 12 virtual ~KeepAliveService() {} |
| 13 virtual void EnsureKeepAlive() = 0; | 13 virtual void EnsureKeepAlive() = 0; |
| 14 virtual void FreeKeepAlive() = 0; | 14 virtual void FreeKeepAlive() = 0; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 #endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_KEEP_ALIVE_SERVICE_H_ | 17 #endif // CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_H_ |
| OLD | NEW |