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

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

Issue 337323003: Remove the ability to retain local data of evicted ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove an unused declaration 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
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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // for |extension_id|, if we have any. Otherwise returns NULL. 474 // for |extension_id|, if we have any. Otherwise returns NULL.
475 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo( 475 scoped_ptr<ExtensionInfo> GetDelayedInstallInfo(
476 const std::string& extension_id) const; 476 const std::string& extension_id) const;
477 477
478 DelayReason GetDelayedInstallReason(const std::string& extension_id) const; 478 DelayReason GetDelayedInstallReason(const std::string& extension_id) const;
479 479
480 // Returns information about all the extensions that have delayed install 480 // Returns information about all the extensions that have delayed install
481 // information. 481 // information.
482 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const; 482 scoped_ptr<ExtensionsInfo> GetAllDelayedInstallInfo() const;
483 483
484 // Returns information about evicted ephemeral apps.
485 scoped_ptr<ExtensionsInfo> GetEvictedEphemeralAppsInfo() const;
486
487 // Return information about a specific evicted ephemeral app. Can return NULL
488 // if no such evicted app exists or is currently installed.
489 scoped_ptr<ExtensionInfo> GetEvictedEphemeralAppInfo(
490 const std::string& extension_id) const;
491
492 // Permanently remove the preferences for an evicted ephemeral app.
493 void RemoveEvictedEphemeralApp(const std::string& extension_id);
494
495 // Returns true if the extension is an ephemeral app. 484 // Returns true if the extension is an ephemeral app.
496 bool IsEphemeralApp(const std::string& extension_id) const; 485 bool IsEphemeralApp(const std::string& extension_id) const;
497 486
498 // Promotes an ephemeral app to a regular installed app. 487 // Promotes an ephemeral app to a regular installed app.
499 void OnEphemeralAppPromoted(const std::string& extension_id); 488 void OnEphemeralAppPromoted(const std::string& extension_id);
500 489
501 // Returns true if the user repositioned the app on the app launcher via drag 490 // Returns true if the user repositioned the app on the app launcher via drag
502 // and drop. 491 // and drop.
503 bool WasAppDraggedByUser(const std::string& extension_id); 492 bool WasAppDraggedByUser(const std::string& extension_id);
504 493
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 bool extensions_disabled_; 716 bool extensions_disabled_;
728 717
729 ObserverList<ExtensionPrefsObserver> observer_list_; 718 ObserverList<ExtensionPrefsObserver> observer_list_;
730 719
731 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 720 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
732 }; 721 };
733 722
734 } // namespace extensions 723 } // namespace extensions
735 724
736 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 725 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698