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

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

Issue 695133005: Temporarily disable extensions and sync while a profile is locked - Profiles Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compiling is awesome Created 6 years, 1 month 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 blocked.
446 bool IsExtensionBlocked(const std::string& id) const;
not at google - send to devlin 2014/11/17 17:04:20 I said in a previous comment there should be no ne
Mike Lerman 2014/11/19 14:54:34 Removed.
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698