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

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

Issue 1695018: Adding ExtensionPrefs methods for storing update-when-idle data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 | Annotate | Revision Log
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual void OnCRXFetchComplete(const GURL& url, 213 virtual void OnCRXFetchComplete(const GURL& url,
214 const URLRequestStatus& status, 214 const URLRequestStatus& status,
215 int response_code, 215 int response_code,
216 const std::string& data); 216 const std::string& data);
217 217
218 // Called when a crx file has been written into a temp file, and is ready 218 // Called when a crx file has been written into a temp file, and is ready
219 // to be installed. 219 // to be installed.
220 void OnCRXFileWritten(const std::string& id, const FilePath& path, 220 void OnCRXFileWritten(const std::string& id, const FilePath& path,
221 const GURL& download_url); 221 const GURL& download_url);
222 222
223 // Callback for when ExtensionsService::Install is finished.
224 void OnExtensionInstallFinished(const FilePath& path, Extension* extension);
225
226 // Verifies downloaded blacklist. Based on the blacklist, calls extension 223 // Verifies downloaded blacklist. Based on the blacklist, calls extension
227 // service to unload blacklisted extensions and update pref. 224 // service to unload blacklisted extensions and update pref.
228 void ProcessBlacklist(const std::string& data); 225 void ProcessBlacklist(const std::string& data);
229 226
230 // Sets the timer to call TimerFired after roughly |target_delay| from now. 227 // Sets the timer to call TimerFired after roughly |target_delay| from now.
231 // To help spread load evenly on servers, this method adds some random 228 // To help spread load evenly on servers, this method adds some random
232 // jitter. It also saves the scheduled time so it can be reloaded on 229 // jitter. It also saves the scheduled time so it can be reloaded on
233 // browser restart. 230 // browser restart.
234 void ScheduleNextCheck(const base::TimeDelta& target_delay); 231 void ScheduleNextCheck(const base::TimeDelta& target_delay);
235 232
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 276
280 PrefService* prefs_; 277 PrefService* prefs_;
281 278
282 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_; 279 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_;
283 bool blacklist_checks_enabled_; 280 bool blacklist_checks_enabled_;
284 281
285 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); 282 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater);
286 }; 283 };
287 284
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ 285 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_prefs_unittest.cc ('k') | chrome/browser/extensions/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698