| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 // for |extension_id|, if we have any. Otherwise returns NULL. | 435 // for |extension_id|, if we have any. Otherwise returns NULL. |
| 436 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( | 436 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( |
| 437 const std::string& extension_id) const; | 437 const std::string& extension_id) const; |
| 438 | 438 |
| 439 DelayReason GetDelayedInstallReason(const std::string& extension_id) const; | 439 DelayReason GetDelayedInstallReason(const std::string& extension_id) const; |
| 440 | 440 |
| 441 // Returns information about all the extensions that have delayed install | 441 // Returns information about all the extensions that have delayed install |
| 442 // information. | 442 // information. |
| 443 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; | 443 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; |
| 444 | 444 |
| 445 // Returns true if the extension is locked. |
| 446 bool IsExtensionLocked(const std::string& id) const; |
| 447 |
| 445 // Returns true if the extension is an ephemeral app. | 448 // Returns true if the extension is an ephemeral app. |
| 446 bool IsEphemeralApp(const std::string& extension_id) const; | 449 bool IsEphemeralApp(const std::string& extension_id) const; |
| 447 | 450 |
| 448 // Promotes an ephemeral app to a regular installed app. | 451 // Promotes an ephemeral app to a regular installed app. |
| 449 void OnEphemeralAppPromoted(const std::string& extension_id); | 452 void OnEphemeralAppPromoted(const std::string& extension_id); |
| 450 | 453 |
| 451 // Returns true if the user repositioned the app on the app launcher via drag | 454 // Returns true if the user repositioned the app on the app launcher via drag |
| 452 // and drop. | 455 // and drop. |
| 453 bool WasAppDraggedByUser(const std::string& extension_id); | 456 bool WasAppDraggedByUser(const std::string& extension_id); |
| 454 | 457 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 bool extensions_disabled_; | 684 bool extensions_disabled_; |
| 682 | 685 |
| 683 ObserverList<ExtensionPrefsObserver> observer_list_; | 686 ObserverList<ExtensionPrefsObserver> observer_list_; |
| 684 | 687 |
| 685 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 688 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 686 }; | 689 }; |
| 687 | 690 |
| 688 } // namespace extensions | 691 } // namespace extensions |
| 689 | 692 |
| 690 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 693 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |