Index: chrome/browser/extensions/extension_prefs.h |
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h |
index ae05fd960737ac0aa723ae5683a6e3a92f1e70e1..3fc81271311f35c382894777fdc837002ed449a1 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. |
+ 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); |
battre
2012/06/19 14:26:23
nit: make function const?
koz (OOO until 15th September)
2012/06/20 08:05:56
Done.
|
+ |
// Controls the omnibox default suggestion as set by the extension. |
extensions::ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( |
const std::string& extension_id); |