| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 ExtensionUpdater* updater() { return updater_.get(); } | 214 ExtensionUpdater* updater() { return updater_.get(); } |
| 215 | 215 |
| 216 // Notify the frontend that there was an error loading an extension. | 216 // Notify the frontend that there was an error loading an extension. |
| 217 // This method is public because ExtensionsServiceBackend can post to here. | 217 // This method is public because ExtensionsServiceBackend can post to here. |
| 218 void ReportExtensionLoadError(const FilePath& extension_path, | 218 void ReportExtensionLoadError(const FilePath& extension_path, |
| 219 const std::string& error, | 219 const std::string& error, |
| 220 NotificationType type, | 220 NotificationType type, |
| 221 bool be_noisy); | 221 bool be_noisy); |
| 222 | 222 |
| 223 // BlacklistPathProvider: | 223 // BlacklistPathProvider: |
| 224 virtual bool AreBlacklistPathsReady() const; |
| 224 virtual std::vector<FilePath> GetPersistentBlacklistPaths(); | 225 virtual std::vector<FilePath> GetPersistentBlacklistPaths(); |
| 225 virtual std::vector<FilePath> GetTransientBlacklistPaths(); | 226 virtual std::vector<FilePath> GetTransientBlacklistPaths(); |
| 226 | 227 |
| 227 // NotificationObserver | 228 // NotificationObserver |
| 228 virtual void Observe(NotificationType type, | 229 virtual void Observe(NotificationType type, |
| 229 const NotificationSource& source, | 230 const NotificationSource& source, |
| 230 const NotificationDetails& details); | 231 const NotificationDetails& details); |
| 231 | 232 |
| 232 private: | 233 private: |
| 233 friend class ChromeThread; | 234 friend class ChromeThread; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 386 |
| 386 // A map of all external extension providers. | 387 // A map of all external extension providers. |
| 387 typedef std::map<Extension::Location, | 388 typedef std::map<Extension::Location, |
| 388 linked_ptr<ExternalExtensionProvider> > ProviderMap; | 389 linked_ptr<ExternalExtensionProvider> > ProviderMap; |
| 389 ProviderMap external_extension_providers_; | 390 ProviderMap external_extension_providers_; |
| 390 | 391 |
| 391 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); | 392 DISALLOW_COPY_AND_ASSIGN(ExtensionsServiceBackend); |
| 392 }; | 393 }; |
| 393 | 394 |
| 394 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ | 395 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_SERVICE_H_ |
| OLD | NEW |