| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 static const char* kBlacklistAppID; | 230 static const char* kBlacklistAppID; |
| 231 | 231 |
| 232 // Does common work from constructors. | 232 // Does common work from constructors. |
| 233 void Init(); | 233 void Init(); |
| 234 | 234 |
| 235 // Computes when to schedule the first update check. | 235 // Computes when to schedule the first update check. |
| 236 base::TimeDelta DetermineFirstCheckDelay(); | 236 base::TimeDelta DetermineFirstCheckDelay(); |
| 237 | 237 |
| 238 // URLFetcher::Delegate interface. | 238 // URLFetcher::Delegate interface. |
| 239 virtual void OnURLFetchComplete(const URLFetcher* source, | 239 virtual void OnURLFetchComplete( |
| 240 const GURL& url, | 240 const URLFetcher* source, |
| 241 const net::URLRequestStatus& status, | 241 const GURL& url, |
| 242 int response_code, | 242 const net::URLRequestStatus& status, |
| 243 const ResponseCookies& cookies, | 243 int response_code, |
| 244 const std::string& data); | 244 const ResponseCookies& cookies, |
| 245 const std::string& data); |
| 246 |
| 247 virtual void OnURLFetchCompleteNew( |
| 248 const URLFetcher* source, |
| 249 const GURL& url, |
| 250 const net::URLRequestStatus& status, |
| 251 int response_code, |
| 252 const ResponseCookies& cookies, |
| 253 const URLFetcher::ResponseBodyContainerInterface& response_body); |
| 254 |
| 255 virtual URLFetcher::ResponseBodyContainerInterface* |
| 256 CreateResponseBodyContainer(); |
| 245 | 257 |
| 246 // These do the actual work when a URL fetch completes. | 258 // These do the actual work when a URL fetch completes. |
| 247 virtual void OnManifestFetchComplete(const GURL& url, | 259 virtual void OnManifestFetchComplete(const GURL& url, |
| 248 const net::URLRequestStatus& status, | 260 const net::URLRequestStatus& status, |
| 249 int response_code, | 261 int response_code, |
| 250 const std::string& data); | 262 const std::string& data); |
| 251 virtual void OnCRXFetchComplete(const GURL& url, | 263 virtual void OnCRXFetchComplete(const GURL& url, |
| 252 const net::URLRequestStatus& status, | 264 const net::URLRequestStatus& status, |
| 253 int response_code, | 265 int response_code, |
| 254 const std::string& data); | 266 const std::string& data); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // The ids of extensions that have in-progress update checks. | 367 // The ids of extensions that have in-progress update checks. |
| 356 std::set<std::string> in_progress_ids_; | 368 std::set<std::string> in_progress_ids_; |
| 357 | 369 |
| 358 FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory); | 370 FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory); |
| 359 FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior); | 371 FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior); |
| 360 | 372 |
| 361 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 373 DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); |
| 362 }; | 374 }; |
| 363 | 375 |
| 364 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ | 376 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ |
| OLD | NEW |