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

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

Issue 10824198: Move small c/b/extensions classes into extensions namespace no.1 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest-er master for cq Created 8 years, 4 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 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 #if defined(UNIT_TEST) 614 #if defined(UNIT_TEST)
615 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) { 615 void TrackTerminatedExtensionForTest(const extensions::Extension* extension) {
616 TrackTerminatedExtension(extension); 616 TrackTerminatedExtension(extension);
617 } 617 }
618 #endif 618 #endif
619 619
620 ExtensionWarningSet* extension_warnings() { 620 ExtensionWarningSet* extension_warnings() {
621 return &extension_warnings_; 621 return &extension_warnings_;
622 } 622 }
623 623
624 AppShortcutManager* app_shortcut_manager() { return &app_shortcut_manager_; } 624 extensions::AppShortcutManager* app_shortcut_manager() {
625 return &app_shortcut_manager_;
626 }
625 627
626 // Specialization of syncer::SyncableService::AsWeakPtr. 628 // Specialization of syncer::SyncableService::AsWeakPtr.
627 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); } 629 base::WeakPtr<ExtensionService> AsWeakPtr() { return base::AsWeakPtr(this); }
628 630
629 private: 631 private:
630 // Contains Extension data that can change during the life of the process, 632 // Contains Extension data that can change during the life of the process,
631 // but does not persist across restarts. 633 // but does not persist across restarts.
632 struct ExtensionRuntimeData { 634 struct ExtensionRuntimeData {
633 // True if the background page is ready. 635 // True if the background page is ready.
634 bool background_page_ready; 636 bool background_page_ready;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 NaClModuleInfoList nacl_module_list_; 853 NaClModuleInfoList nacl_module_list_;
852 854
853 extensions::AppSyncBundle app_sync_bundle_; 855 extensions::AppSyncBundle app_sync_bundle_;
854 extensions::ExtensionSyncBundle extension_sync_bundle_; 856 extensions::ExtensionSyncBundle extension_sync_bundle_;
855 857
856 // Contains an entry for each warning that shall be currently shown. 858 // Contains an entry for each warning that shall be currently shown.
857 ExtensionWarningSet extension_warnings_; 859 ExtensionWarningSet extension_warnings_;
858 860
859 extensions::ProcessMap process_map_; 861 extensions::ProcessMap process_map_;
860 862
861 AppShortcutManager app_shortcut_manager_; 863 extensions::AppShortcutManager app_shortcut_manager_;
862 864
863 scoped_ptr<ExtensionErrorUI> extension_error_ui_; 865 scoped_ptr<ExtensionErrorUI> extension_error_ui_;
864 866
865 #if defined(ENABLE_EXTENSIONS) 867 #if defined(ENABLE_EXTENSIONS)
866 scoped_ptr<extensions::ExtensionActionStorageManager> 868 scoped_ptr<extensions::ExtensionActionStorageManager>
867 extension_action_storage_manager_; 869 extension_action_storage_manager_;
868 #endif 870 #endif
869 871
870 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 872 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
871 InstallAppsWithUnlimtedStorage); 873 InstallAppsWithUnlimtedStorage);
872 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 874 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
873 InstallAppsAndCheckStorageProtection); 875 InstallAppsAndCheckStorageProtection);
874 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 876 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
875 }; 877 };
876 878
877 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 879 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698