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

Side by Side Diff: chrome/browser/extensions/external_provider_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_vector.h"
14 #include "chrome/browser/extensions/external_loader.h" 13 #include "chrome/browser/extensions/external_loader.h"
15 #include "extensions/browser/external_provider_interface.h" 14 #include "extensions/browser/external_provider_interface.h"
16 #include "extensions/common/manifest.h" 15 #include "extensions/common/manifest.h"
17 16
18 class Profile; 17 class Profile;
19 18
20 namespace base { 19 namespace base {
21 class DictionaryValue; 20 class DictionaryValue;
22 class Version; 21 class Version;
23 } 22 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const std::string& extension_id, 96 const std::string& extension_id,
98 std::set<std::string>* unsupported_extensions); 97 std::set<std::string>* unsupported_extensions);
99 98
100 bool HandleDoNotInstallForEnterprise( 99 bool HandleDoNotInstallForEnterprise(
101 const base::DictionaryValue* extension, 100 const base::DictionaryValue* extension,
102 const std::string& extension_id, 101 const std::string& extension_id,
103 std::set<std::string>* unsupported_extensions); 102 std::set<std::string>* unsupported_extensions);
104 103
105 // Retrieves the extensions that were found in this provider. 104 // Retrieves the extensions that were found in this provider.
106 void RetrieveExtensionsFromPrefs( 105 void RetrieveExtensionsFromPrefs(
107 ScopedVector<ExternalInstallInfoUpdateUrl>* 106 std::vector<std::unique_ptr<ExternalInstallInfoUpdateUrl>>*
108 external_update_url_extensions, 107 external_update_url_extensions,
109 ScopedVector<ExternalInstallInfoFile>* external_file_extensions); 108 std::vector<std::unique_ptr<ExternalInstallInfoFile>>*
109 external_file_extensions);
110 110
111 // Location for external extensions that are provided by this provider from 111 // Location for external extensions that are provided by this provider from
112 // local crx files. 112 // local crx files.
113 const Manifest::Location crx_location_; 113 const Manifest::Location crx_location_;
114 114
115 // Location for external extensions that are provided by this provider from 115 // Location for external extensions that are provided by this provider from
116 // update URLs. 116 // update URLs.
117 const Manifest::Location download_location_; 117 const Manifest::Location download_location_;
118 118
119 // Weak pointer to the object that consumes the external extensions. 119 // Weak pointer to the object that consumes the external extensions.
(...skipping 24 matching lines...) Expand all
144 144
145 // Whether the extensions from this provider should be installed immediately. 145 // Whether the extensions from this provider should be installed immediately.
146 bool install_immediately_; 146 bool install_immediately_;
147 147
148 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); 148 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl);
149 }; 149 };
150 150
151 } // namespace extensions 151 } // namespace extensions
152 152
153 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_policy_loader_unittest.cc ('k') | chrome/browser/extensions/external_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698