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_UPDATER_EXTENSION_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 friend class ExtensionUpdaterFileHandler; | 130 friend class ExtensionUpdaterFileHandler; |
131 | 131 |
132 // FetchedCRXFile holds information about a CRX file we fetched to disk, | 132 // FetchedCRXFile holds information about a CRX file we fetched to disk, |
133 // but have not yet installed. | 133 // but have not yet installed. |
134 struct FetchedCRXFile { | 134 struct FetchedCRXFile { |
135 FetchedCRXFile(); | 135 FetchedCRXFile(); |
136 FetchedCRXFile(const CRXFileInfo& file, | 136 FetchedCRXFile(const CRXFileInfo& file, |
137 bool file_ownership_passed, | 137 bool file_ownership_passed, |
138 const std::set<int>& request_ids, | 138 const std::set<int>& request_ids, |
139 const InstallCallback& callback); | 139 const InstallCallback& callback); |
| 140 FetchedCRXFile(const FetchedCRXFile& other); |
140 ~FetchedCRXFile(); | 141 ~FetchedCRXFile(); |
141 | 142 |
142 CRXFileInfo info; | 143 CRXFileInfo info; |
143 GURL download_url; | 144 GURL download_url; |
144 bool file_ownership_passed; | 145 bool file_ownership_passed; |
145 std::set<int> request_ids; | 146 std::set<int> request_ids; |
146 InstallCallback callback; | 147 InstallCallback callback; |
147 }; | 148 }; |
148 | 149 |
149 struct InProgressCheck { | 150 struct InProgressCheck { |
150 InProgressCheck(); | 151 InProgressCheck(); |
| 152 InProgressCheck(const InProgressCheck& other); |
151 ~InProgressCheck(); | 153 ~InProgressCheck(); |
152 | 154 |
153 bool install_immediately; | 155 bool install_immediately; |
154 FinishedCallback callback; | 156 FinishedCallback callback; |
155 // The ids of extensions that have in-progress update checks. | 157 // The ids of extensions that have in-progress update checks. |
156 std::list<std::string> in_progress_ids_; | 158 std::list<std::string> in_progress_ids_; |
157 }; | 159 }; |
158 | 160 |
159 struct ThrottleInfo; | 161 struct ThrottleInfo; |
160 | 162 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 std::map<std::string, ThrottleInfo> throttle_info_; | 274 std::map<std::string, ThrottleInfo> throttle_info_; |
273 | 275 |
274 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; | 276 base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; |
275 | 277 |
276 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 278 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
277 }; | 279 }; |
278 | 280 |
279 } // namespace extensions | 281 } // namespace extensions |
280 | 282 |
281 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ | 283 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_UPDATER_H_ |
OLD | NEW |