Index: chrome/browser/extensions/extension_prefs.h |
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h |
index 92ca408b3870c73b9e4093636080e3419eadf6ba..8aa79c825361395e5ce8c67b70310103b128d73a 100644 |
--- a/chrome/browser/extensions/extension_prefs.h |
+++ b/chrome/browser/extensions/extension_prefs.h |
@@ -275,6 +275,20 @@ class ExtensionPrefs : public extensions::ContentSettingsStore::Observer, |
void SetRegisteredEvents(const std::string& extension_id, |
const std::set<std::string>& events); |
+ // Adds a filter to an event. |
Aaron Boodman
2012/06/15 07:34:51
It's matt's new storage thingy ready for you to us
Matt Perry
2012/06/15 18:59:34
It's ready in asynchronous form. Do we want to mov
Aaron Boodman
2012/06/15 22:37:31
I think leaving this stuff in Preferences is kinda
koz (OOO until 15th September)
2012/06/18 23:27:27
Ok, I'll work on making that change in this patch
Matt Perry
2012/06/18 23:35:46
It's more work than you might think. I would hold
|
+ void AddFilterToEvent(const std::string& event_name, |
+ const std::string& extension_id, |
+ const DictionaryValue* filter); |
+ |
+ // Removes a filter from an event. |
+ void RemoveFilterFromEvent(const std::string& event_name, |
+ const std::string& extension_id, |
+ const DictionaryValue* filter); |
+ |
+ // Returns the dictionary of event filters that the given extension has |
+ // registered. |
+ const DictionaryValue* GetFilteredEvents(const std::string& extension_id); |
+ |
// Controls a list of alarms for this extension, including the next time they |
// should run. |
std::vector<extensions::AlarmPref> GetRegisteredAlarms( |