| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); | 322 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); |
| 323 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, | 323 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, |
| 324 bool value); | 324 bool value); |
| 325 | 325 |
| 326 // Whether the user has been notified about extension with |extension_id| | 326 // Whether the user has been notified about extension with |extension_id| |
| 327 // overriding the new tab page. | 327 // overriding the new tab page. |
| 328 bool HasNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id); | 328 bool HasNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id); |
| 329 void SetNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id, | 329 void SetNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id, |
| 330 bool value); | 330 bool value); |
| 331 | 331 |
| 332 // Whether the user has been notified about extension with |extension_id| |
| 333 // overriding the proxy. |
| 334 bool HasProxyOverriddenBubbleBeenAcknowledged( |
| 335 const std::string& extension_id); |
| 336 void SetProxyOverriddenBubbleBeenAcknowledged(const std::string& extension_id, |
| 337 bool value); |
| 338 |
| 332 // Returns true if the extension notification code has already run for the | 339 // Returns true if the extension notification code has already run for the |
| 333 // first time for this profile. Currently we use this flag to mean that any | 340 // first time for this profile. Currently we use this flag to mean that any |
| 334 // extensions that would trigger notifications should get silently | 341 // extensions that would trigger notifications should get silently |
| 335 // acknowledged. This is a fuse. Calling it the first time returns false. | 342 // acknowledged. This is a fuse. Calling it the first time returns false. |
| 336 // Subsequent calls return true. It's not possible through an API to ever | 343 // Subsequent calls return true. It's not possible through an API to ever |
| 337 // reset it. Don't call it unless you mean it! | 344 // reset it. Don't call it unless you mean it! |
| 338 bool SetAlertSystemFirstRun(); | 345 bool SetAlertSystemFirstRun(); |
| 339 | 346 |
| 340 // Checks if extensions are blacklisted by default, by policy. | 347 // Checks if extensions are blacklisted by default, by policy. |
| 341 // The ManagementPolicy::Provider methods also take this into account, and | 348 // The ManagementPolicy::Provider methods also take this into account, and |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 bool extensions_disabled_; | 715 bool extensions_disabled_; |
| 709 | 716 |
| 710 ObserverList<ExtensionPrefsObserver> observer_list_; | 717 ObserverList<ExtensionPrefsObserver> observer_list_; |
| 711 | 718 |
| 712 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 719 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 713 }; | 720 }; |
| 714 | 721 |
| 715 } // namespace extensions | 722 } // namespace extensions |
| 716 | 723 |
| 717 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 724 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |