OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSIONS_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 void ReportExtensionLoadError(const FilePath& extension_path, | 344 void ReportExtensionLoadError(const FilePath& extension_path, |
345 const std::string& error, | 345 const std::string& error, |
346 NotificationType type, | 346 NotificationType type, |
347 bool be_noisy); | 347 bool be_noisy); |
348 | 348 |
349 // NotificationObserver | 349 // NotificationObserver |
350 virtual void Observe(NotificationType type, | 350 virtual void Observe(NotificationType type, |
351 const NotificationSource& source, | 351 const NotificationSource& source, |
352 const NotificationDetails& details); | 352 const NotificationDetails& details); |
353 | 353 |
| 354 // Whether there are any apps installed. |
| 355 bool HasApps(); |
| 356 |
354 private: | 357 private: |
355 virtual ~ExtensionsService(); | 358 virtual ~ExtensionsService(); |
356 friend class ChromeThread; | 359 friend class ChromeThread; |
357 friend class DeleteTask<ExtensionsService>; | 360 friend class DeleteTask<ExtensionsService>; |
358 | 361 |
359 // Clear all persistent data that may have been stored by the extension. | 362 // Clear all persistent data that may have been stored by the extension. |
360 void ClearExtensionData(const GURL& extension_url); | 363 void ClearExtensionData(const GURL& extension_url); |
361 | 364 |
362 // Look up an extension by ID, optionally including either or both of enabled | 365 // Look up an extension by ID, optionally including either or both of enabled |
363 // and disabled extensions. | 366 // and disabled extensions. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 | 552 |
550 // A map of all external extension providers. | 553 // A map of all external extension providers. |
551 typedef std::map<Extension::Location, | 554 typedef std::map<Extension::Location, |
552 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 555 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
553 ProviderMap external_extension_providers_; | 556 ProviderMap external_extension_providers_; |
554 | 557 |
555 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 558 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
556 }; | 559 }; |
557 | 560 |
558 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 561 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
OLD | NEW |