OLD | NEW |
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_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 void Observe(int type, | 149 void Observe(int type, |
150 const content::NotificationSource& source, | 150 const content::NotificationSource& source, |
151 const content::NotificationDetails& details) override; | 151 const content::NotificationDetails& details) override; |
152 | 152 |
153 // Called when ExtensionSystem is ready. | 153 // Called when ExtensionSystem is ready. |
154 void OnExtensionSystemReady(Profile* profile); | 154 void OnExtensionSystemReady(Profile* profile); |
155 | 155 |
156 // extensions::ExtensionRegistryObserver implementation. | 156 // extensions::ExtensionRegistryObserver implementation. |
157 void OnExtensionLoaded(content::BrowserContext* browser_context, | 157 void OnExtensionLoaded(content::BrowserContext* browser_context, |
158 const extensions::Extension* extension) override; | 158 const extensions::Extension* extension) override; |
159 void OnExtensionUnloaded( | 159 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
160 content::BrowserContext* browser_context, | 160 const extensions::Extension* extension, |
161 const extensions::Extension* extension, | 161 extensions::UnloadedExtensionReason reason) override; |
162 extensions::UnloadedExtensionInfo::Reason reason) override; | |
163 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 162 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
164 const extensions::Extension* extension, | 163 const extensions::Extension* extension, |
165 extensions::UninstallReason reason) override; | 164 extensions::UninstallReason reason) override; |
166 | 165 |
167 // Restarts a force-installed app/extension after a crash. | 166 // Restarts a force-installed app/extension after a crash. |
168 void RestartForceInstalledExtensionOnCrash( | 167 void RestartForceInstalledExtensionOnCrash( |
169 const extensions::Extension* extension, | 168 const extensions::Extension* extension, |
170 Profile* profile); | 169 Profile* profile); |
171 | 170 |
172 // Loads all registered BackgroundContents at startup. | 171 // Loads all registered BackgroundContents at startup. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 ScopedObserver<extensions::ExtensionRegistry, | 256 ScopedObserver<extensions::ExtensionRegistry, |
258 extensions::ExtensionRegistryObserver> | 257 extensions::ExtensionRegistryObserver> |
259 extension_registry_observer_; | 258 extension_registry_observer_; |
260 | 259 |
261 base::WeakPtrFactory<BackgroundContentsService> weak_ptr_factory_; | 260 base::WeakPtrFactory<BackgroundContentsService> weak_ptr_factory_; |
262 | 261 |
263 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 262 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
264 }; | 263 }; |
265 | 264 |
266 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 265 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
OLD | NEW |