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

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

Issue 297263003: Optimize promotion of ephemeral apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 OnEphemeralAppInstalled(const std::string& extension_id);
benwells 2014/05/27 01:42:56 Same here, the name alone is confusing. Suggest On
tmdiep 2014/05/27 01:58:54 Yeah, this was the original name as well. What abo
benwells 2014/05/27 03:11:11 sgtm.
tmdiep 2014/05/27 07:46:05 Done.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698