Chromium Code Reviews

Side by Side Diff: chrome/browser/extensions/extension_updater.h

Issue 1232003: Added support for pending extensions to ExtensionsService and (Closed)
Patch Set: synced to head Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_EXTENSION_UPDATER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 180 matching lines...)
191 void StartUpdateCheck(ManifestFetchData* fetch_data); 191 void StartUpdateCheck(ManifestFetchData* fetch_data);
192 192
193 // Begins (or queues up) download of an updated extension. 193 // Begins (or queues up) download of an updated extension.
194 void FetchUpdatedExtension(const std::string& id, const GURL& url, 194 void FetchUpdatedExtension(const std::string& id, const GURL& url,
195 const std::string& hash, const std::string& version); 195 const std::string& hash, const std::string& version);
196 196
197 // Once a manifest is parsed, this starts fetches of any relevant crx files. 197 // Once a manifest is parsed, this starts fetches of any relevant crx files.
198 void HandleManifestResults(const ManifestFetchData& fetch_data, 198 void HandleManifestResults(const ManifestFetchData& fetch_data,
199 const UpdateManifest::Results& results); 199 const UpdateManifest::Results& results);
200 200
201 // Calculates the value to use for the ping days parameter in manifest
202 // fetches for a given extension.
203 int CalculatePingDays(const std::string& extension_id);
204
205 // Determines the version of an existing extension. 201 // Determines the version of an existing extension.
206 // Returns true on success and false on failures. 202 // Returns true on success and false on failures.
207 bool GetExistingVersion(const std::string& id, std::string* version); 203 bool GetExistingVersion(const std::string& id, std::string* version);
208 204
209 // Given a list of potential updates, returns the indices of the ones that are 205 // Given a list of potential updates, returns the indices of the ones that are
210 // applicable (are actually a new version, etc.) in |result|. 206 // applicable (are actually a new version, etc.) in |result|.
211 std::vector<int> DetermineUpdates(const ManifestFetchData& fetch_data, 207 std::vector<int> DetermineUpdates(const ManifestFetchData& fetch_data,
212 const UpdateManifest::Results& possible_updates); 208 const UpdateManifest::Results& possible_updates);
213 209
214 // Outstanding url fetch requests for manifests and updates. 210 // Outstanding url fetch requests for manifests and updates.
(...skipping 19 matching lines...)
234 230
235 PrefService* prefs_; 231 PrefService* prefs_;
236 232
237 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_; 233 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_;
238 bool blacklist_checks_enabled_; 234 bool blacklist_checks_enabled_;
239 235
240 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 236 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
241 }; 237 };
242 238
243 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ 239 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine