Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / app_list / keep_alive_service_impl.h
blob1d67e7efbdf19acd93d47147e43decd36104c198
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 {
12 public:
13 ScopedKeepAlive();
14 ~ScopedKeepAlive();
16 private:
17 DISALLOW_COPY_AND_ASSIGN(ScopedKeepAlive);
20 class KeepAliveServiceImpl : public KeepAliveService {
21 public:
22 KeepAliveServiceImpl();
23 virtual ~KeepAliveServiceImpl();
25 // KeepAliveServiceImpl overrides.
26 virtual void EnsureKeepAlive() OVERRIDE;
27 virtual void FreeKeepAlive() OVERRIDE;
29 private:
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_