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