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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); | 324 bool HasSettingsApiBubbleBeenAcknowledged(const std::string& extension_id); |
325 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, | 325 void SetSettingsApiBubbleBeenAcknowledged(const std::string& extension_id, |
326 bool value); | 326 bool value); |
327 | 327 |
328 // Whether the user has been notified about extension with |extension_id| | 328 // Whether the user has been notified about extension with |extension_id| |
329 // overriding the new tab page. | 329 // overriding the new tab page. |
330 bool HasNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id); | 330 bool HasNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id); |
331 void SetNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id, | 331 void SetNtpOverriddenBubbleBeenAcknowledged(const std::string& extension_id, |
332 bool value); | 332 bool value); |
333 | 333 |
334 // Whether the user has been notified about extension with |extension_id| | |
335 // overriding the proxy. | |
336 bool HasProxyOverriddenBubbleBeenAcknowledged( | |
Devlin
2014/05/20 17:26:31
There was an effort awhile back to try and make Ex
Finnur
2014/05/21 16:30:32
Yeah, I've been pondering something along the same
| |
337 const std::string& extension_id); | |
338 void SetProxyOverriddenBubbleBeenAcknowledged(const std::string& extension_id, | |
339 bool value); | |
340 | |
334 // Returns true if the extension notification code has already run for the | 341 // Returns true if the extension notification code has already run for the |
335 // first time for this profile. Currently we use this flag to mean that any | 342 // first time for this profile. Currently we use this flag to mean that any |
336 // extensions that would trigger notifications should get silently | 343 // extensions that would trigger notifications should get silently |
337 // acknowledged. This is a fuse. Calling it the first time returns false. | 344 // acknowledged. This is a fuse. Calling it the first time returns false. |
338 // Subsequent calls return true. It's not possible through an API to ever | 345 // Subsequent calls return true. It's not possible through an API to ever |
339 // reset it. Don't call it unless you mean it! | 346 // reset it. Don't call it unless you mean it! |
340 bool SetAlertSystemFirstRun(); | 347 bool SetAlertSystemFirstRun(); |
341 | 348 |
342 // Checks if extensions are blacklisted by default, by policy. | 349 // Checks if extensions are blacklisted by default, by policy. |
343 // The ManagementPolicy::Provider methods also take this into account, and | 350 // The ManagementPolicy::Provider methods also take this into account, and |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
715 bool extensions_disabled_; | 722 bool extensions_disabled_; |
716 | 723 |
717 ObserverList<ExtensionPrefsObserver> observer_list_; | 724 ObserverList<ExtensionPrefsObserver> observer_list_; |
718 | 725 |
719 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 726 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
720 }; | 727 }; |
721 | 728 |
722 } // namespace extensions | 729 } // namespace extensions |
723 | 730 |
724 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 731 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
OLD | NEW |