| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 6 #define EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/memory/linked_ptr.h" | |
| 11 #include "extensions/common/manifest.h" | 11 #include "extensions/common/manifest.h" |
| 12 | 12 |
| 13 class GURL; | 13 class GURL; |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class Version; | 16 class Version; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace extensions { | 19 namespace extensions { |
| 20 | 20 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 virtual bool GetExtensionDetails( | 89 virtual bool GetExtensionDetails( |
| 90 const std::string& id, | 90 const std::string& id, |
| 91 Manifest::Location* location, | 91 Manifest::Location* location, |
| 92 std::unique_ptr<base::Version>* version) const = 0; | 92 std::unique_ptr<base::Version>* version) const = 0; |
| 93 | 93 |
| 94 // Determines if this provider had loaded the list of external extensions | 94 // Determines if this provider had loaded the list of external extensions |
| 95 // from its source. | 95 // from its source. |
| 96 virtual bool IsReady() const = 0; | 96 virtual bool IsReady() const = 0; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 typedef std::vector<linked_ptr<ExternalProviderInterface> > | 99 using ProviderCollection = |
| 100 ProviderCollection; | 100 std::vector<std::unique_ptr<ExternalProviderInterface>>; |
| 101 | 101 |
| 102 } // namespace extensions | 102 } // namespace extensions |
| 103 | 103 |
| 104 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 104 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
| OLD | NEW |