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

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: Updated with newest master Created 8 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 (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/app_sync_bundle.h" 26 #include "chrome/browser/extensions/app_sync_bundle.h"
27 #include "chrome/browser/extensions/apps_promo.h" 27 #include "chrome/browser/extensions/apps_promo.h"
28 #include "chrome/browser/extensions/extension_garbage_collector.h"
28 #include "chrome/browser/extensions/extension_icon_manager.h" 29 #include "chrome/browser/extensions/extension_icon_manager.h"
29 #include "chrome/browser/extensions/extension_menu_manager.h" 30 #include "chrome/browser/extensions/extension_menu_manager.h"
30 #include "chrome/browser/extensions/extension_prefs.h" 31 #include "chrome/browser/extensions/extension_prefs.h"
31 #include "chrome/browser/extensions/extension_process_manager.h" 32 #include "chrome/browser/extensions/extension_process_manager.h"
32 #include "chrome/browser/extensions/extension_sync_bundle.h" 33 #include "chrome/browser/extensions/extension_sync_bundle.h"
33 #include "chrome/browser/extensions/extension_toolbar_model.h" 34 #include "chrome/browser/extensions/extension_toolbar_model.h"
34 #include "chrome/browser/extensions/extension_warning_set.h" 35 #include "chrome/browser/extensions/extension_warning_set.h"
35 #include "chrome/browser/extensions/extensions_quota_service.h" 36 #include "chrome/browser/extensions/extensions_quota_service.h"
36 #include "chrome/browser/extensions/external_extension_provider_interface.h" 37 #include "chrome/browser/extensions/external_extension_provider_interface.h"
37 #include "chrome/browser/extensions/pending_extension_manager.h" 38 #include "chrome/browser/extensions/pending_extension_manager.h"
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 700
700 // The normal profile associated with this ExtensionService. 701 // The normal profile associated with this ExtensionService.
701 Profile* profile_; 702 Profile* profile_;
702 703
703 // The ExtensionSystem for the profile above. 704 // The ExtensionSystem for the profile above.
704 ExtensionSystem* system_; 705 ExtensionSystem* system_;
705 706
706 // Preferences for the owning profile (weak reference). 707 // Preferences for the owning profile (weak reference).
707 ExtensionPrefs* extension_prefs_; 708 ExtensionPrefs* extension_prefs_;
708 709
710 // The ExtensionGarbageCollector associated with this service; this is
711 // responsible for cleaning up old or partially deleted extensions.
712 scoped_refptr<ExtensionGarbageCollector> extension_garbage_collector_;
713
709 // Settings for the owning profile. 714 // Settings for the owning profile.
710 scoped_ptr<extensions::SettingsFrontend> settings_frontend_; 715 scoped_ptr<extensions::SettingsFrontend> settings_frontend_;
711 716
712 // The current list of installed extensions. 717 // The current list of installed extensions.
713 ExtensionSet extensions_; 718 ExtensionSet extensions_;
714 719
715 // The list of installed extensions that have been disabled. 720 // The list of installed extensions that have been disabled.
716 ExtensionSet disabled_extensions_; 721 ExtensionSet disabled_extensions_;
717 722
718 // The list of installed extensions that have been terminated. 723 // The list of installed extensions that have been terminated.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 scoped_ptr<ExtensionGlobalError> extension_global_error_; 848 scoped_ptr<ExtensionGlobalError> extension_global_error_;
844 849
845 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 850 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
846 InstallAppsWithUnlimtedStorage); 851 InstallAppsWithUnlimtedStorage);
847 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 852 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
848 InstallAppsAndCheckStorageProtection); 853 InstallAppsAndCheckStorageProtection);
849 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 854 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
850 }; 855 };
851 856
852 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 857 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_garbage_collector.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698