| OLD | NEW |
| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 std::string version; | 77 std::string version; |
| 78 ExtensionFetch() : id(""), url(), package_hash(""), version("") {} | 78 ExtensionFetch() : id(""), url(), package_hash(""), version("") {} |
| 79 ExtensionFetch(const std::string& i, const GURL& u, | 79 ExtensionFetch(const std::string& i, const GURL& u, |
| 80 const std::string& h, const std::string& v) | 80 const std::string& h, const std::string& v) |
| 81 : id(i), url(u), package_hash(h), version(v) {} | 81 : id(i), url(u), package_hash(h), version(v) {} |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // These are needed for unit testing, to help identify the correct mock | 84 // These are needed for unit testing, to help identify the correct mock |
| 85 // URLFetcher objects. | 85 // URLFetcher objects. |
| 86 static const int kManifestFetcherId = 1; | 86 static const int kManifestFetcherId = 1; |
| 87 static const int kExtensionFetcherId = 1; | 87 static const int kExtensionFetcherId = 2; |
| 88 | 88 |
| 89 static const char* kBlacklistUpdateUrl; | 89 static const char* kBlacklistUpdateUrl; |
| 90 static const char* kBlacklistAppID; | 90 static const char* kBlacklistAppID; |
| 91 | 91 |
| 92 // Does common work from constructors. | 92 // Does common work from constructors. |
| 93 void Init(); | 93 void Init(); |
| 94 | 94 |
| 95 // Computes when to schedule the first update check. | 95 // Computes when to schedule the first update check. |
| 96 base::TimeDelta DetermineFirstCheckDelay(); | 96 base::TimeDelta DetermineFirstCheckDelay(); |
| 97 | 97 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 MessageLoop* io_loop_; | 180 MessageLoop* io_loop_; |
| 181 | 181 |
| 182 PrefService* prefs_; | 182 PrefService* prefs_; |
| 183 | 183 |
| 184 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_; | 184 scoped_refptr<ExtensionUpdaterFileHandler> file_handler_; |
| 185 | 185 |
| 186 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 186 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ | 189 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ |
| OLD | NEW |