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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 10514013: Filtered events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix cross_incognito_args bug Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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.
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);
battre 2012/06/19 14:26:23 nit: make function const?
koz (OOO until 15th September) 2012/06/20 08:05:56 Done.
291
278 // Controls the omnibox default suggestion as set by the extension. 292 // Controls the omnibox default suggestion as set by the extension.
279 extensions::ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( 293 extensions::ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion(
280 const std::string& extension_id); 294 const std::string& extension_id);
281 void SetOmniboxDefaultSuggestion( 295 void SetOmniboxDefaultSuggestion(
282 const std::string& extension_id, 296 const std::string& extension_id,
283 const extensions::ExtensionOmniboxSuggestion& suggestion); 297 const extensions::ExtensionOmniboxSuggestion& suggestion);
284 298
285 // Returns true if the user enabled this extension to be loaded in incognito 299 // Returns true if the user enabled this extension to be loaded in incognito
286 // mode. 300 // mode.
287 bool IsIncognitoEnabled(const std::string& extension_id); 301 bool IsIncognitoEnabled(const std::string& extension_id);
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 // Contains all the logic for handling the order for various extension 556 // Contains all the logic for handling the order for various extension
543 // properties. 557 // properties.
544 scoped_ptr<ExtensionSorting> extension_sorting_; 558 scoped_ptr<ExtensionSorting> extension_sorting_;
545 559
546 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_; 560 scoped_refptr<extensions::ContentSettingsStore> content_settings_store_;
547 561
548 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 562 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
549 }; 563 };
550 564
551 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 565 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698