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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 // Removes a filter from an event. | 282 // Removes a filter from an event. |
283 void RemoveFilterFromEvent(const std::string& event_name, | 283 void RemoveFilterFromEvent(const std::string& event_name, |
284 const std::string& extension_id, | 284 const std::string& extension_id, |
285 const DictionaryValue* filter); | 285 const DictionaryValue* filter); |
286 | 286 |
287 // Returns the dictionary of event filters that the given extension has | 287 // Returns the dictionary of event filters that the given extension has |
288 // registered. | 288 // registered. |
289 const DictionaryValue* GetFilteredEvents( | 289 const DictionaryValue* GetFilteredEvents( |
290 const std::string& extension_id) const; | 290 const std::string& extension_id) const; |
291 | 291 |
| 292 // Records whether or not this extension is currently running. |
| 293 void SetExtensionRunning(const std::string& extension_id, bool is_running); |
| 294 |
| 295 // Returns whether or not this extension is marked as running. This is used to |
| 296 // restart apps across browser restarts. |
| 297 bool IsExtensionRunning(const std::string& extension_id); |
| 298 |
292 // Controls the omnibox default suggestion as set by the extension. | 299 // Controls the omnibox default suggestion as set by the extension. |
293 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( | 300 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( |
294 const std::string& extension_id); | 301 const std::string& extension_id); |
295 void SetOmniboxDefaultSuggestion( | 302 void SetOmniboxDefaultSuggestion( |
296 const std::string& extension_id, | 303 const std::string& extension_id, |
297 const ExtensionOmniboxSuggestion& suggestion); | 304 const ExtensionOmniboxSuggestion& suggestion); |
298 | 305 |
299 // Returns true if the user enabled this extension to be loaded in incognito | 306 // Returns true if the user enabled this extension to be loaded in incognito |
300 // mode. | 307 // mode. |
301 bool IsIncognitoEnabled(const std::string& extension_id); | 308 bool IsIncognitoEnabled(const std::string& extension_id); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
571 scoped_ptr<ExtensionSorting> extension_sorting_; | 578 scoped_ptr<ExtensionSorting> extension_sorting_; |
572 | 579 |
573 scoped_refptr<ContentSettingsStore> content_settings_store_; | 580 scoped_refptr<ContentSettingsStore> content_settings_store_; |
574 | 581 |
575 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 582 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
576 }; | 583 }; |
577 | 584 |
578 } // namespace extensions | 585 } // namespace extensions |
579 | 586 |
580 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 587 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
OLD | NEW |