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 <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 virtual void OnExternalProviderReady( | 54 virtual void OnExternalProviderReady( |
55 const ExternalProviderInterface* provider) = 0; | 55 const ExternalProviderInterface* provider) = 0; |
56 | 56 |
57 // Once this provider becomes "ready", it can send additional external | 57 // Once this provider becomes "ready", it can send additional external |
58 // extensions it learns about later on through | 58 // extensions it learns about later on through |
59 // OnExternalExtensionUpdateUrlFound() or OnExternalExtensionFileFound(). | 59 // OnExternalExtensionUpdateUrlFound() or OnExternalExtensionFileFound(). |
60 // This method will be called each time the provider finds a set of | 60 // This method will be called each time the provider finds a set of |
61 // updated external extensions. | 61 // updated external extensions. |
62 virtual void OnExternalProviderUpdateComplete( | 62 virtual void OnExternalProviderUpdateComplete( |
63 const ExternalProviderInterface* provider, | 63 const ExternalProviderInterface* provider, |
64 const ScopedVector<ExternalInstallInfoUpdateUrl>& update_url_extensions, | 64 const std::vector<std::unique_ptr<ExternalInstallInfoUpdateUrl>>& |
65 const ScopedVector<ExternalInstallInfoFile>& file_extensions, | 65 update_url_extensions, |
| 66 const std::vector<std::unique_ptr<ExternalInstallInfoFile>>& |
| 67 file_extensions, |
66 const std::set<std::string>& removed_extensions) = 0; | 68 const std::set<std::string>& removed_extensions) = 0; |
67 | 69 |
68 protected: | 70 protected: |
69 virtual ~VisitorInterface() {} | 71 virtual ~VisitorInterface() {} |
70 }; | 72 }; |
71 | 73 |
72 virtual ~ExternalProviderInterface() {} | 74 virtual ~ExternalProviderInterface() {} |
73 | 75 |
74 // The visitor (ExtensionsService) calls this function before it goes away. | 76 // The visitor (ExtensionsService) calls this function before it goes away. |
75 virtual void ServiceShutdown() = 0; | 77 virtual void ServiceShutdown() = 0; |
(...skipping 19 matching lines...) Expand all Loading... |
95 // from its source. | 97 // from its source. |
96 virtual bool IsReady() const = 0; | 98 virtual bool IsReady() const = 0; |
97 }; | 99 }; |
98 | 100 |
99 using ProviderCollection = | 101 using ProviderCollection = |
100 std::vector<std::unique_ptr<ExternalProviderInterface>>; | 102 std::vector<std::unique_ptr<ExternalProviderInterface>>; |
101 | 103 |
102 } // namespace extensions | 104 } // namespace extensions |
103 | 105 |
104 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ | 106 #endif // EXTENSIONS_BROWSER_EXTERNAL_PROVIDER_INTERFACE_H_ |
OLD | NEW |