OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_PREFS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
268 | 268 |
269 // Sets the active |permissions| for the extension with |extension_id|. | 269 // Sets the active |permissions| for the extension with |extension_id|. |
270 void SetActivePermissions(const std::string& extension_id, | 270 void SetActivePermissions(const std::string& extension_id, |
271 const ExtensionPermissionSet* permissions); | 271 const ExtensionPermissionSet* permissions); |
272 | 272 |
273 // Returns the list of events that the given extension has registered for. | 273 // Returns the list of events that the given extension has registered for. |
274 std::set<std::string> GetRegisteredEvents(const std::string& extension_id); | 274 std::set<std::string> GetRegisteredEvents(const std::string& extension_id); |
275 void SetRegisteredEvents(const std::string& extension_id, | 275 void SetRegisteredEvents(const std::string& extension_id, |
276 const std::set<std::string>& events); | 276 const std::set<std::string>& events); |
277 | 277 |
278 // 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
| |
279 void AddFilterToEvent(const std::string& event_name, | |
280 const std::string& extension_id, | |
281 const DictionaryValue* filter); | |
282 | |
283 // Removes a filter from an event. | |
284 void RemoveFilterFromEvent(const std::string& event_name, | |
285 const std::string& extension_id, | |
286 const DictionaryValue* filter); | |
287 | |
288 // Returns the dictionary of event filters that the given extension has | |
289 // registered. | |
290 const DictionaryValue* GetFilteredEvents(const std::string& extension_id); | |
291 | |
278 // Controls a list of alarms for this extension, including the next time they | 292 // Controls a list of alarms for this extension, including the next time they |
279 // should run. | 293 // should run. |
280 std::vector<extensions::AlarmPref> GetRegisteredAlarms( | 294 std::vector<extensions::AlarmPref> GetRegisteredAlarms( |
281 const std::string& extension_id); | 295 const std::string& extension_id); |
282 void SetRegisteredAlarms(const std::string& extension_id, | 296 void SetRegisteredAlarms(const std::string& extension_id, |
283 const std::vector<extensions::AlarmPref>& alarms); | 297 const std::vector<extensions::AlarmPref>& alarms); |
284 | 298 |
285 // Controls the omnibox default suggestion as set by the extension. | 299 // Controls the omnibox default suggestion as set by the extension. |
286 extensions::ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( | 300 extensions::ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( |
287 const std::string& extension_id); | 301 const std::string& extension_id); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
552 // Contains all the logic for handling the order for various extension | 566 // Contains all the logic for handling the order for various extension |
553 // properties. | 567 // properties. |
554 scoped_ptr<ExtensionSorting> extension_sorting_; | 568 scoped_ptr<ExtensionSorting> extension_sorting_; |
555 | 569 |
556 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; | 570 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; |
557 | 571 |
558 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 572 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
559 }; | 573 }; |
560 | 574 |
561 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 575 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |