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

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

Issue 1909773002: Convert //extensions/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 <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
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_
OLDNEW
« no previous file with comments | « extensions/browser/external_install_info.cc ('k') | extensions/browser/guest_view/app_view/app_view_guest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698