OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |