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

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

Issue 9817018: Cleaning Up Extensions When Local Content Removed (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified for thread safety Created 8 years, 8 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 (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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/command_line.h" 15 #include "base/command_line.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/file_path.h" 17 #include "base/file_path.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/memory/linked_ptr.h" 19 #include "base/memory/linked_ptr.h"
20 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
21 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
22 #include "base/property_bag.h" 22 #include "base/property_bag.h"
23 #include "base/time.h" 23 #include "base/time.h"
24 #include "base/tuple.h" 24 #include "base/tuple.h"
25 #include "chrome/browser/extensions/app_shortcut_manager.h" 25 #include "chrome/browser/extensions/app_shortcut_manager.h"
26 #include "chrome/browser/extensions/apps_promo.h" 26 #include "chrome/browser/extensions/apps_promo.h"
27 #include "chrome/browser/extensions/extension_garbage_collector.h"
27 #include "chrome/browser/extensions/extension_icon_manager.h" 28 #include "chrome/browser/extensions/extension_icon_manager.h"
28 #include "chrome/browser/extensions/extension_menu_manager.h" 29 #include "chrome/browser/extensions/extension_menu_manager.h"
29 #include "chrome/browser/extensions/extension_prefs.h" 30 #include "chrome/browser/extensions/extension_prefs.h"
30 #include "chrome/browser/extensions/extension_process_manager.h" 31 #include "chrome/browser/extensions/extension_process_manager.h"
31 #include "chrome/browser/extensions/extension_sync_data.h" 32 #include "chrome/browser/extensions/extension_sync_data.h"
32 #include "chrome/browser/extensions/extension_toolbar_model.h" 33 #include "chrome/browser/extensions/extension_toolbar_model.h"
33 #include "chrome/browser/extensions/extension_warning_set.h" 34 #include "chrome/browser/extensions/extension_warning_set.h"
34 #include "chrome/browser/extensions/extensions_quota_service.h" 35 #include "chrome/browser/extensions/extensions_quota_service.h"
35 #include "chrome/browser/extensions/external_extension_provider_interface.h" 36 #include "chrome/browser/extensions/external_extension_provider_interface.h"
36 #include "chrome/browser/extensions/pending_extension_manager.h" 37 #include "chrome/browser/extensions/pending_extension_manager.h"
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 702
702 // The normal profile associated with this ExtensionService. 703 // The normal profile associated with this ExtensionService.
703 Profile* profile_; 704 Profile* profile_;
704 705
705 // The ExtensionSystem for the profile above. 706 // The ExtensionSystem for the profile above.
706 ExtensionSystem* system_; 707 ExtensionSystem* system_;
707 708
708 // Preferences for the owning profile (weak reference). 709 // Preferences for the owning profile (weak reference).
709 ExtensionPrefs* extension_prefs_; 710 ExtensionPrefs* extension_prefs_;
710 711
712 // The ExtensionGarbageCollector associated with this service; this is
713 // responsible for cleaning up old or partially deleted extensions.
714 scoped_refptr<ExtensionGarbageCollector> extension_garbage_collector_;
715
711 // Settings for the owning profile. 716 // Settings for the owning profile.
712 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; 717 scoped_ptr<extensions::SettingsFrontend> settings_frontend_;
713 718
714 // The current list of installed extensions. 719 // The current list of installed extensions.
715 // TODO(aa): This should use chrome/common/extensions/extension_set.h. 720 // TODO(aa): This should use chrome/common/extensions/extension_set.h.
716 ExtensionSet extensions_; 721 ExtensionSet extensions_;
717 722
718 // The list of installed extensions that have been disabled. 723 // The list of installed extensions that have been disabled.
719 ExtensionSet disabled_extensions_; 724 ExtensionSet disabled_extensions_;
720 725
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 scoped_ptr<ExtensionGlobalError> extension_global_error_; 849 scoped_ptr<ExtensionGlobalError> extension_global_error_;
845 850
846 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
847 InstallAppsWithUnlimtedStorage); 852 InstallAppsWithUnlimtedStorage);
848 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
849 InstallAppsAndCheckStorageProtection); 854 InstallAppsAndCheckStorageProtection);
850 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 855 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
851 }; 856 };
852 857
853 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 858 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698