| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // for |extension_id|, if we have any. Otherwise returns NULL. | 445 // for |extension_id|, if we have any. Otherwise returns NULL. |
| 446 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( | 446 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( |
| 447 const std::string& extension_id) const; | 447 const std::string& extension_id) const; |
| 448 | 448 |
| 449 DelayReason GetDelayedInstallReason(const std::string& extension_id) const; | 449 DelayReason GetDelayedInstallReason(const std::string& extension_id) const; |
| 450 | 450 |
| 451 // Returns information about all the extensions that have delayed install | 451 // Returns information about all the extensions that have delayed install |
| 452 // information. | 452 // information. |
| 453 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; | 453 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; |
| 454 | 454 |
| 455 // Returns true if the extension is an ephemeral app. | |
| 456 bool IsEphemeralApp(const std::string& extension_id) const; | |
| 457 | |
| 458 // Promotes an ephemeral app to a regular installed app. | |
| 459 void OnEphemeralAppPromoted(const std::string& extension_id); | |
| 460 | |
| 461 // Returns true if the user repositioned the app on the app launcher via drag | 455 // Returns true if the user repositioned the app on the app launcher via drag |
| 462 // and drop. | 456 // and drop. |
| 463 bool WasAppDraggedByUser(const std::string& extension_id) const; | 457 bool WasAppDraggedByUser(const std::string& extension_id) const; |
| 464 | 458 |
| 465 // Sets a flag indicating that the user repositioned the app on the app | 459 // Sets a flag indicating that the user repositioned the app on the app |
| 466 // launcher by drag and dropping it. | 460 // launcher by drag and dropping it. |
| 467 void SetAppDraggedByUser(const std::string& extension_id); | 461 void SetAppDraggedByUser(const std::string& extension_id); |
| 468 | 462 |
| 469 // Returns true if there is an extension which controls the preference value | 463 // Returns true if there is an extension which controls the preference value |
| 470 // for |pref_key| *and* it is specific to incognito mode. | 464 // for |pref_key| *and* it is specific to incognito mode. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 702 bool extensions_disabled_; | 696 bool extensions_disabled_; |
| 703 | 697 |
| 704 base::ObserverList<ExtensionPrefsObserver> observer_list_; | 698 base::ObserverList<ExtensionPrefsObserver> observer_list_; |
| 705 | 699 |
| 706 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 700 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 707 }; | 701 }; |
| 708 | 702 |
| 709 } // namespace extensions | 703 } // namespace extensions |
| 710 | 704 |
| 711 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 705 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |