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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 10152008: Extension alarms now persist in Preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no more TimerInfo Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarm_manager.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index ddebe41739b122fe5c3cbc3818300f44de2ba417..c3791f9d74b4b2bd6e500f6fed00e54a42b4f103 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -24,6 +24,10 @@ class ExtensionSorting;
class PrefService;
class URLPatternSet;
+namespace extensions {
+struct AlarmPref;
+}
+
// Class for managing global and per-extension preferences.
//
// This class distinguishes the following kinds of preferences:
@@ -260,6 +264,13 @@ class ExtensionPrefs : public ExtensionContentSettingsStore::Observer,
void SetRegisteredEvents(const std::string& extension_id,
const std::set<std::string>& events);
+ // Controls a list of alarms for this extension, including the next time they
+ // should run.
+ std::vector<extensions::AlarmPref> GetRegisteredAlarms(
+ const std::string& extension_id);
+ void SetRegisteredAlarms(const std::string& extension_id,
+ const std::vector<extensions::AlarmPref>& alarms);
+
// Returns true if the user enabled this extension to be loaded in incognito
// mode.
bool IsIncognitoEnabled(const std::string& extension_id);
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarm_manager.cc ('k') | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698