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 | |
339 // Returns true if the extension notification code has already run for the | 332 // Returns true if the extension notification code has already run for the |
340 // first time for this profile. Currently we use this flag to mean that any | 333 // first time for this profile. Currently we use this flag to mean that any |
341 // extensions that would trigger notifications should get silently | 334 // extensions that would trigger notifications should get silently |
342 // acknowledged. This is a fuse. Calling it the first time returns false. | 335 // acknowledged. This is a fuse. Calling it the first time returns false. |
343 // Subsequent calls return true. It's not possible through an API to ever | 336 // Subsequent calls return true. It's not possible through an API to ever |
344 // reset it. Don't call it unless you mean it! | 337 // reset it. Don't call it unless you mean it! |
345 bool SetAlertSystemFirstRun(); | 338 bool SetAlertSystemFirstRun(); |
346 | 339 |
347 // Checks if extensions are blacklisted by default, by policy. | 340 // Checks if extensions are blacklisted by default, by policy. |
348 // The ManagementPolicy::Provider methods also take this into account, and | 341 // The ManagementPolicy::Provider methods also take this into account, and |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 bool extensions_disabled_; | 708 bool extensions_disabled_; |
716 | 709 |
717 ObserverList<ExtensionPrefsObserver> observer_list_; | 710 ObserverList<ExtensionPrefsObserver> observer_list_; |
718 | 711 |
719 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 712 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
720 }; | 713 }; |
721 | 714 |
722 } // namespace extensions | 715 } // namespace extensions |
723 | 716 |
724 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 717 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
OLD | NEW |