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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 // if no such evicted app exists or is currently installed. | 473 // if no such evicted app exists or is currently installed. |
474 scoped_ptr<ExtensionInfo> GetEvictedEphemeralAppInfo( | 474 scoped_ptr<ExtensionInfo> GetEvictedEphemeralAppInfo( |
475 const std::string& extension_id) const; | 475 const std::string& extension_id) const; |
476 | 476 |
477 // Permanently remove the preferences for an evicted ephemeral app. | 477 // Permanently remove the preferences for an evicted ephemeral app. |
478 void RemoveEvictedEphemeralApp(const std::string& extension_id); | 478 void RemoveEvictedEphemeralApp(const std::string& extension_id); |
479 | 479 |
480 // Returns true if the extension is an ephemeral app. | 480 // Returns true if the extension is an ephemeral app. |
481 bool IsEphemeralApp(const std::string& extension_id) const; | 481 bool IsEphemeralApp(const std::string& extension_id) const; |
482 | 482 |
| 483 // Promotes an ephemeral app to a regular installed app. |
| 484 void OnEphemeralAppPromoted(const std::string& extension_id); |
| 485 |
483 // Returns true if the user repositioned the app on the app launcher via drag | 486 // Returns true if the user repositioned the app on the app launcher via drag |
484 // and drop. | 487 // and drop. |
485 bool WasAppDraggedByUser(const std::string& extension_id); | 488 bool WasAppDraggedByUser(const std::string& extension_id); |
486 | 489 |
487 // Sets a flag indicating that the user repositioned the app on the app | 490 // Sets a flag indicating that the user repositioned the app on the app |
488 // launcher by drag and dropping it. | 491 // launcher by drag and dropping it. |
489 void SetAppDraggedByUser(const std::string& extension_id); | 492 void SetAppDraggedByUser(const std::string& extension_id); |
490 | 493 |
491 // Returns true if there is an extension which controls the preference value | 494 // Returns true if there is an extension which controls the preference value |
492 // for |pref_key| *and* it is specific to incognito mode. | 495 // for |pref_key| *and* it is specific to incognito mode. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 bool extensions_disabled_; | 724 bool extensions_disabled_; |
722 | 725 |
723 ObserverList<ExtensionPrefsObserver> observer_list_; | 726 ObserverList<ExtensionPrefsObserver> observer_list_; |
724 | 727 |
725 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 728 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
726 }; | 729 }; |
727 | 730 |
728 } // namespace extensions | 731 } // namespace extensions |
729 | 732 |
730 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ | 733 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
OLD | NEW |