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

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

Issue 2294653002: Some linked_ptr -> unique_ptr conversion in extensions/browser. (Closed)
Patch Set: address comments 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 <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
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_
OLDNEW
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/browser/guest_view/app_view/app_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698