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 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 void set_install_immediately(bool install_immediately) { | 83 void set_install_immediately(bool install_immediately) { |
84 install_immediately_ = install_immediately; | 84 install_immediately_ = install_immediately; |
85 } | 85 } |
86 | 86 |
87 private: | 87 private: |
88 bool HandleMinProfileVersion(const base::DictionaryValue* extension, | 88 bool HandleMinProfileVersion(const base::DictionaryValue* extension, |
89 const std::string& extension_id, | 89 const std::string& extension_id, |
90 std::set<std::string>* unsupported_extensions); | 90 std::set<std::string>* unsupported_extensions); |
91 | 91 |
92 bool HandleInstalledByOem(const base::DictionaryValue* extension, | |
93 const std::string& extension_id, | |
94 std::set<std::string>* unsupported_extensions, | |
95 int* creation_flags); | |
96 | |
97 // Location for external extensions that are provided by this provider from | 92 // Location for external extensions that are provided by this provider from |
98 // local crx files. | 93 // local crx files. |
99 const Manifest::Location crx_location_; | 94 const Manifest::Location crx_location_; |
100 | 95 |
101 // Location for external extensions that are provided by this provider from | 96 // Location for external extensions that are provided by this provider from |
102 // update URLs. | 97 // update URLs. |
103 const Manifest::Location download_location_; | 98 const Manifest::Location download_location_; |
104 | 99 |
105 // Weak pointer to the object that consumes the external extensions. | 100 // Weak pointer to the object that consumes the external extensions. |
106 // This is zeroed out by: ServiceShutdown() | 101 // This is zeroed out by: ServiceShutdown() |
(...skipping 23 matching lines...) Expand all Loading... |
130 | 125 |
131 // Whether the extensions from this provider should be installed immediately. | 126 // Whether the extensions from this provider should be installed immediately. |
132 bool install_immediately_; | 127 bool install_immediately_; |
133 | 128 |
134 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); | 129 DISALLOW_COPY_AND_ASSIGN(ExternalProviderImpl); |
135 }; | 130 }; |
136 | 131 |
137 } // namespace extensions | 132 } // namespace extensions |
138 | 133 |
139 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ | 134 #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_PROVIDER_IMPL_H_ |
OLD | NEW |