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_IMPL_H_
6 #define CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_IMPL_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/app_list/keep_alive_service.h"
11 class ScopedKeepAlive
{
17 DISALLOW_COPY_AND_ASSIGN(ScopedKeepAlive
);
20 class KeepAliveServiceImpl
: public KeepAliveService
{
22 KeepAliveServiceImpl();
23 virtual ~KeepAliveServiceImpl();
25 // KeepAliveServiceImpl overrides.
26 virtual void EnsureKeepAlive() OVERRIDE
;
27 virtual void FreeKeepAlive() OVERRIDE
;
30 // Used to keep the browser process alive while the app list is visible.
31 scoped_ptr
<ScopedKeepAlive
> keep_alive_
;
33 DISALLOW_COPY_AND_ASSIGN(KeepAliveServiceImpl
);
38 #endif // CHROME_BROWSER_UI_APP_LIST_KEEP_ALIVE_SERVICE_IMPL_H_