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

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

Issue 11368145: Lazy-creates BluetoothAdapter in ExtensionBluetoothEventRouter (EBEE). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetMutableAdapter Created 8 years, 1 month 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 const ExtensionSet* terminated_extensions() const; 204 const ExtensionSet* terminated_extensions() const;
205 205
206 // Returns a set of all installed, disabled, and terminated extensions and 206 // Returns a set of all installed, disabled, and terminated extensions and
207 // transfers ownership to caller. 207 // transfers ownership to caller.
208 const ExtensionSet* GenerateInstalledExtensionsSet() const; 208 const ExtensionSet* GenerateInstalledExtensionsSet() const;
209 209
210 // Returns a set of all extensions disabled by the sideload wipeout 210 // Returns a set of all extensions disabled by the sideload wipeout
211 // initiative. 211 // initiative.
212 const ExtensionSet* GetWipedOutExtensions() const; 212 const ExtensionSet* GetWipedOutExtensions() const;
213 213
214 // Notifies the extension event routers that are interested in knowing when
215 // the event listeners are added.
216 void NotifyExtensionEventRoutersOnListenerAdded(
217 const std::string& event_name);
218
219 // Notifies the extension event routers that are interested in knowing when
220 // the event listeners are removed.
221 void NotifyExtensionEventRoutersOnListenerRemoved(
222 const std::string& event_name);
223
214 // Gets the object managing the set of pending extensions. 224 // Gets the object managing the set of pending extensions.
215 virtual extensions::PendingExtensionManager* 225 virtual extensions::PendingExtensionManager*
216 pending_extension_manager() OVERRIDE; 226 pending_extension_manager() OVERRIDE;
217 227
218 const FilePath& install_directory() const { return install_directory_; } 228 const FilePath& install_directory() const { return install_directory_; }
219 229
220 extensions::ProcessMap* process_map() { return &process_map_; } 230 extensions::ProcessMap* process_map() { return &process_map_; }
221 231
222 // Whether this extension can run in an incognito window. 232 // Whether this extension can run in an incognito window.
223 virtual bool IsIncognitoEnabled(const std::string& extension_id) const; 233 virtual bool IsIncognitoEnabled(const std::string& extension_id) const;
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 #endif 980 #endif
971 981
972 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 982 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
973 InstallAppsWithUnlimtedStorage); 983 InstallAppsWithUnlimtedStorage);
974 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 984 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
975 InstallAppsAndCheckStorageProtection); 985 InstallAppsAndCheckStorageProtection);
976 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 986 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
977 }; 987 };
978 988
979 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 989 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/event_router.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698