| 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 | |
| 299 // Controls the omnibox default suggestion as set by the extension. | 292 // Controls the omnibox default suggestion as set by the extension. |
| 300 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( | 293 ExtensionOmniboxSuggestion GetOmniboxDefaultSuggestion( |
| 301 const std::string& extension_id); | 294 const std::string& extension_id); |
| 302 void SetOmniboxDefaultSuggestion( | 295 void SetOmniboxDefaultSuggestion( |
| 303 const std::string& extension_id, | 296 const std::string& extension_id, |
| 304 const ExtensionOmniboxSuggestion& suggestion); | 297 const ExtensionOmniboxSuggestion& suggestion); |
| 305 | 298 |
| 306 // 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 |
| 307 // mode. | 300 // mode. |
| 308 bool IsIncognitoEnabled(const std::string& extension_id); | 301 bool IsIncognitoEnabled(const std::string& extension_id); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 scoped_ptr<ExtensionSorting> extension_sorting_; | 565 scoped_ptr<ExtensionSorting> extension_sorting_; |
| 573 | 566 |
| 574 scoped_refptr<ContentSettingsStore> content_settings_store_; | 567 scoped_refptr<ContentSettingsStore> content_settings_store_; |
| 575 | 568 |
| 576 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 569 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 577 }; | 570 }; |
| 578 | 571 |
| 579 } // namespace extensions | 572 } // namespace extensions |
| 580 | 573 |
| 581 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 574 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ |
| OLD | NEW |