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

Side by Side Diff: chrome/browser/apps/ephemeral_app_service.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months 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
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 CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 5 #ifndef CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 6 #define CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "apps/app_lifetime_monitor.h" 10 #include "apps/app_lifetime_monitor.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 std::set<std::string>* remove_app_ids); 86 std::set<std::string>* remove_app_ids);
87 87
88 Profile* profile_; 88 Profile* profile_;
89 89
90 ScopedObserver<extensions::ExtensionRegistry, 90 ScopedObserver<extensions::ExtensionRegistry,
91 extensions::ExtensionRegistryObserver> 91 extensions::ExtensionRegistryObserver>
92 extension_registry_observer_; 92 extension_registry_observer_;
93 ScopedObserver<apps::AppLifetimeMonitor, apps::AppLifetimeMonitor::Observer> 93 ScopedObserver<apps::AppLifetimeMonitor, apps::AppLifetimeMonitor::Observer>
94 app_lifetime_monitor_observer_; 94 app_lifetime_monitor_observer_;
95 95
96 base::OneShotTimer<EphemeralAppService> garbage_collect_apps_timer_; 96 base::OneShotTimer garbage_collect_apps_timer_;
97 97
98 // The count of cached ephemeral apps. 98 // The count of cached ephemeral apps.
99 int ephemeral_app_count_; 99 int ephemeral_app_count_;
100 100
101 // Number of seconds before disabling idle ephemeral apps. 101 // Number of seconds before disabling idle ephemeral apps.
102 // Overridden in tests. 102 // Overridden in tests.
103 int disable_idle_app_delay_; 103 int disable_idle_app_delay_;
104 104
105 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_; 105 base::WeakPtrFactory<EphemeralAppService> weak_ptr_factory_;
106 106
107 friend class EphemeralAppServiceTest; 107 friend class EphemeralAppServiceTest;
108 friend class EphemeralAppServiceBrowserTest; 108 friend class EphemeralAppServiceBrowserTest;
109 109
110 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService); 110 DISALLOW_COPY_AND_ASSIGN(EphemeralAppService);
111 }; 111 };
112 112
113 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_ 113 #endif // CHROME_BROWSER_APPS_EPHEMERAL_APP_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/drive/drive_app_provider_browsertest.cc ('k') | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698