| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/browser/extensions/external_extension_provider.h" | |
| 10 | |
| 11 class Version; | |
| 12 | |
| 13 // A specialization of the ExternalExtensionProvider that uses the Registry to | |
| 14 // look up which external extensions are registered. | |
| 15 class ExternalRegistryExtensionProvider : public ExternalExtensionProvider { | |
| 16 public: | |
| 17 ExternalRegistryExtensionProvider(); | |
| 18 virtual ~ExternalRegistryExtensionProvider(); | |
| 19 | |
| 20 // ExternalExtensionProvider implementation: | |
| 21 virtual void VisitRegisteredExtension(Visitor* visitor) const; | |
| 22 | |
| 23 virtual bool HasExtension(const std::string& id) const; | |
| 24 | |
| 25 virtual bool GetExtensionDetails(const std::string& id, | |
| 26 Extension::Location* location, | |
| 27 scoped_ptr<Version>* version) const; | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_REGISTRY_EXTENSION_PROVIDER_WIN_H_ | |
| OLD | NEW |