Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: apps/app_keep_alive_service.h

Issue 60193005: Don't add keep-alives for apps after the app keep-alive service has shut down. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | apps/app_keep_alive_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 APPS_APP_KEEP_ALIVE_SERVICE_H_ 5 #ifndef APPS_APP_KEEP_ALIVE_SERVICE_H_
6 #define APPS_APP_KEEP_ALIVE_SERVICE_H_ 6 #define APPS_APP_KEEP_ALIVE_SERVICE_H_
7 7
8 #include "apps/app_lifetime_monitor.h" 8 #include "apps/app_lifetime_monitor.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
10 10
(...skipping 11 matching lines...) Expand all
22 virtual void OnAppStop(Profile* profile, const std::string& app_id) OVERRIDE; 22 virtual void OnAppStop(Profile* profile, const std::string& app_id) OVERRIDE;
23 virtual void OnAppActivated(Profile* profile, 23 virtual void OnAppActivated(Profile* profile,
24 const std::string& app_id) OVERRIDE; 24 const std::string& app_id) OVERRIDE;
25 virtual void OnAppDeactivated(Profile* profile, 25 virtual void OnAppDeactivated(Profile* profile,
26 const std::string& app_id) OVERRIDE; 26 const std::string& app_id) OVERRIDE;
27 virtual void OnChromeTerminating() OVERRIDE; 27 virtual void OnChromeTerminating() OVERRIDE;
28 28
29 private: 29 private:
30 content::BrowserContext* context_; 30 content::BrowserContext* context_;
31 std::set<std::string> running_apps_; 31 std::set<std::string> running_apps_;
32 bool shut_down_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(AppKeepAliveService); 34 DISALLOW_COPY_AND_ASSIGN(AppKeepAliveService);
34 }; 35 };
35 36
36 } // namespace apps 37 } // namespace apps
37 38
38 #endif // APPS_APP_KEEP_ALIVE_SERVICE_H_ 39 #endif // APPS_APP_KEEP_ALIVE_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | apps/app_keep_alive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698