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

Side by Side Diff: extensions/browser/app_window/app_window_geometry_cache.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, 2 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
« no previous file with comments | « extensions/browser/api/idle/idle_manager.h ('k') | extensions/browser/quota_service.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Preferences storage. 133 // Preferences storage.
134 ExtensionPrefs* prefs_; 134 ExtensionPrefs* prefs_;
135 135
136 // Cached data. 136 // Cached data.
137 std::map<std::string, ExtensionData> cache_; 137 std::map<std::string, ExtensionData> cache_;
138 138
139 // Data that still needs saving. 139 // Data that still needs saving.
140 std::set<std::string> unsynced_extensions_; 140 std::set<std::string> unsynced_extensions_;
141 141
142 // The timer used to save the data. 142 // The timer used to save the data.
143 base::OneShotTimer<AppWindowGeometryCache> sync_timer_; 143 base::OneShotTimer sync_timer_;
144 144
145 // The timeout value we'll use for |sync_timer_|. 145 // The timeout value we'll use for |sync_timer_|.
146 base::TimeDelta sync_delay_; 146 base::TimeDelta sync_delay_;
147 147
148 // Listen to extension load, unloaded notifications. 148 // Listen to extension load, unloaded notifications.
149 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 149 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
150 extension_registry_observer_; 150 extension_registry_observer_;
151 151
152 base::ObserverList<Observer> observers_; 152 base::ObserverList<Observer> observers_;
153 }; 153 };
154 154
155 } // namespace extensions 155 } // namespace extensions
156 156
157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_ 157 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_GEOMETRY_CACHE_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/idle/idle_manager.h ('k') | extensions/browser/quota_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698