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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 273193006: Install Chrome OS apps to shared location (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added uninstall 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 const ExtensionIdSet& unchanged); 550 const ExtensionIdSet& unchanged);
551 551
552 void UpdateGreylistedExtensions( 552 void UpdateGreylistedExtensions(
553 const ExtensionIdSet& greylist, 553 const ExtensionIdSet& greylist,
554 const ExtensionIdSet& unchanged, 554 const ExtensionIdSet& unchanged,
555 const extensions::Blacklist::BlacklistStateMap& state_map); 555 const extensions::Blacklist::BlacklistStateMap& state_map);
556 556
557 // Used only by test code. 557 // Used only by test code.
558 void UnloadAllExtensionsInternal(); 558 void UnloadAllExtensionsInternal();
559 559
560 // Called on file task runner thread to uninstall extension.
561 static void UninstallExtensionOnFileThread(
562 const std::string& id,
563 Profile* profile,
564 const base::FilePath& install_dir,
565 const base::FilePath& extension_path);
566
560 // The normal profile associated with this ExtensionService. 567 // The normal profile associated with this ExtensionService.
561 Profile* profile_; 568 Profile* profile_;
562 569
563 // The ExtensionSystem for the profile above. 570 // The ExtensionSystem for the profile above.
564 extensions::ExtensionSystem* system_; 571 extensions::ExtensionSystem* system_;
565 572
566 // Preferences for the owning profile. 573 // Preferences for the owning profile.
567 extensions::ExtensionPrefs* extension_prefs_; 574 extensions::ExtensionPrefs* extension_prefs_;
568 575
569 // Blacklist for the owning profile. 576 // Blacklist for the owning profile.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 714 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
708 GreylistedExtensionDisabled); 715 GreylistedExtensionDisabled);
709 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 716 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
710 GreylistDontEnableManuallyDisabled); 717 GreylistDontEnableManuallyDisabled);
711 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 718 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
712 GreylistUnknownDontChange); 719 GreylistUnknownDontChange);
713 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 720 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
714 }; 721 };
715 722
716 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 723 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698