Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: extensions/browser/external_provider_interface.h

Issue 2310683002: Remove most ScopedVector usage from c/b/extensions. (Closed)
Patch Set: remove scoped_vector includes Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/sync/device_info/device_info_tracker.h ('k') | extensions/browser/management_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698