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

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

Issue 9959097: Move webNavigation extension api into a separate directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class ExtensionBrowserEventRouter; 52 class ExtensionBrowserEventRouter;
53 class ExtensionContentSettingsStore; 53 class ExtensionContentSettingsStore;
54 class ExtensionCookiesEventRouter; 54 class ExtensionCookiesEventRouter;
55 class ExtensionDownloadsEventRouter; 55 class ExtensionDownloadsEventRouter;
56 class ExtensionGlobalError; 56 class ExtensionGlobalError;
57 class ExtensionManagementEventRouter; 57 class ExtensionManagementEventRouter;
58 class ExtensionPreferenceEventRouter; 58 class ExtensionPreferenceEventRouter;
59 class ExtensionSyncData; 59 class ExtensionSyncData;
60 class ExtensionSystem; 60 class ExtensionSystem;
61 class ExtensionToolbarModel; 61 class ExtensionToolbarModel;
62 class ExtensionWebNavigationEventRouter;
63 class HistoryExtensionEventRouter; 62 class HistoryExtensionEventRouter;
64 class GURL; 63 class GURL;
65 class PendingExtensionManager; 64 class PendingExtensionManager;
66 class Profile; 65 class Profile;
67 class SyncData; 66 class SyncData;
68 class Version; 67 class Version;
69 68
70 namespace chromeos { 69 namespace chromeos {
71 class ExtensionBluetoothEventRouter; 70 class ExtensionBluetoothEventRouter;
72 class ExtensionInputMethodEventRouter; 71 class ExtensionInputMethodEventRouter;
73 } 72 }
74 73
75 namespace extensions { 74 namespace extensions {
76 class APIResourceController; 75 class APIResourceController;
77 class ComponentLoader; 76 class ComponentLoader;
78 class ExtensionUpdater; 77 class ExtensionUpdater;
79 class RulesRegistryService; 78 class RulesRegistryService;
80 class SettingsFrontend; 79 class SettingsFrontend;
80 class WebNavigationEventRouter;
81 } 81 }
82 82
83 // This is an interface class to encapsulate the dependencies that 83 // This is an interface class to encapsulate the dependencies that
84 // various classes have on ExtensionService. This allows easy mocking. 84 // various classes have on ExtensionService. This allows easy mocking.
85 class ExtensionServiceInterface : public SyncableService { 85 class ExtensionServiceInterface : public SyncableService {
86 public: 86 public:
87 // A function that returns true if the given extension should be 87 // A function that returns true if the given extension should be
88 // included and false if it should be filtered out. Identical to 88 // included and false if it should be filtered out. Identical to
89 // PendingExtensionInfo::ShouldAllowInstallPredicate. 89 // PendingExtensionInfo::ShouldAllowInstallPredicate.
90 typedef bool (*ExtensionFilter)(const Extension&); 90 typedef bool (*ExtensionFilter)(const Extension&);
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_; 803 scoped_ptr<ExtensionBrowserEventRouter> browser_event_router_;
804 804
805 scoped_ptr<ExtensionPreferenceEventRouter> preference_event_router_; 805 scoped_ptr<ExtensionPreferenceEventRouter> preference_event_router_;
806 806
807 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_; 807 scoped_ptr<BookmarkExtensionEventRouter> bookmark_event_router_;
808 808
809 scoped_ptr<ExtensionCookiesEventRouter> cookies_event_router_; 809 scoped_ptr<ExtensionCookiesEventRouter> cookies_event_router_;
810 810
811 scoped_ptr<ExtensionManagementEventRouter> management_event_router_; 811 scoped_ptr<ExtensionManagementEventRouter> management_event_router_;
812 812
813 scoped_ptr<ExtensionWebNavigationEventRouter> web_navigation_event_router_; 813 scoped_ptr<extensions::WebNavigationEventRouter> web_navigation_event_router_;
814 814
815 #if defined(OS_CHROMEOS) 815 #if defined(OS_CHROMEOS)
816 scoped_ptr<chromeos::ExtensionBluetoothEventRouter> bluetooth_event_router_; 816 scoped_ptr<chromeos::ExtensionBluetoothEventRouter> bluetooth_event_router_;
817 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> 817 scoped_ptr<chromeos::ExtensionInputMethodEventRouter>
818 input_method_event_router_; 818 input_method_event_router_;
819 #endif 819 #endif
820 820
821 scoped_ptr<extensions::RulesRegistryService> rules_registry_service_; 821 scoped_ptr<extensions::RulesRegistryService> rules_registry_service_;
822 822
823 // A collection of external extension providers. Each provider reads 823 // A collection of external extension providers. Each provider reads
(...skipping 25 matching lines...) Expand all
849 scoped_ptr<ExtensionGlobalError> extension_global_error_; 849 scoped_ptr<ExtensionGlobalError> extension_global_error_;
850 850
851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 851 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
852 InstallAppsWithUnlimtedStorage); 852 InstallAppsWithUnlimtedStorage);
853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 853 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
854 InstallAppsAndCheckStorageProtection); 854 InstallAppsAndCheckStorageProtection);
855 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 855 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
856 }; 856 };
857 857
858 #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