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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 // Test if this provider has an extension with id |id| registered. | 82 // Test if this provider has an extension with id |id| registered. |
83 virtual bool HasExtension(const std::string& id) const = 0; | 83 virtual bool HasExtension(const std::string& id) const = 0; |
84 | 84 |
85 // Gets details of an extension by its id. Output params will be set only | 85 // Gets details of an extension by its id. Output params will be set only |
86 // if they are not NULL. If an output parameter is not specified by the | 86 // if they are not NULL. If an output parameter is not specified by the |
87 // provider type, it will not be changed. | 87 // provider type, it will not be changed. |
88 // This function is no longer used outside unit tests. | 88 // This function is no longer used outside unit tests. |
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 scoped_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 typedef std::vector<linked_ptr<ExternalProviderInterface> > |
100 ProviderCollection; | 100 ProviderCollection; |
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 |