Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: extensions/browser/extension_prefs.h

Issue 288923004: Add an extension override bubble and warning box for proxy extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address UI team comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 bool extensions_disabled_; 728 bool extensions_disabled_;
722 729
723 ObserverList<ExtensionPrefsObserver> observer_list_; 730 ObserverList<ExtensionPrefsObserver> observer_list_;
724 731
725 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 732 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
726 }; 733 };
727 734
728 } // namespace extensions 735 } // namespace extensions
729 736
730 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 737 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698