| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 325 | 325 | 
| 326   // Removes a set of ids from in_progress_ids_. | 326   // Removes a set of ids from in_progress_ids_. | 
| 327   void RemoveFromInProgress(const std::set<std::string>& ids); | 327   void RemoveFromInProgress(const std::set<std::string>& ids); | 
| 328 | 328 | 
| 329   // If a CRX file has been fetched but not installed, and no install is | 329   // If a CRX file has been fetched but not installed, and no install is | 
| 330   // currently running, start installing.  Returns true if an install was | 330   // currently running, start installing.  Returns true if an install was | 
| 331   // started. | 331   // started. | 
| 332   bool MaybeInstallCRXFile(); | 332   bool MaybeInstallCRXFile(); | 
| 333 | 333 | 
| 334   // NotificationObserver implementation. | 334   // NotificationObserver implementation. | 
| 335   virtual void Observe(NotificationType type, | 335   virtual void Observe(int type, | 
| 336                        const NotificationSource& source, | 336                        const NotificationSource& source, | 
| 337                        const NotificationDetails& details); | 337                        const NotificationDetails& details); | 
| 338 | 338 | 
| 339   // Whether Start() has been called but not Stop(). | 339   // Whether Start() has been called but not Stop(). | 
| 340   bool alive_; | 340   bool alive_; | 
| 341 | 341 | 
| 342   base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; | 342   base::WeakPtrFactory<ExtensionUpdater> weak_ptr_factory_; | 
| 343 | 343 | 
| 344   // Outstanding url fetch requests for manifests and updates. | 344   // Outstanding url fetch requests for manifests and updates. | 
| 345   scoped_ptr<URLFetcher> manifest_fetcher_; | 345   scoped_ptr<URLFetcher> manifest_fetcher_; | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 384   // Fetched CRX files waiting to be installed. | 384   // Fetched CRX files waiting to be installed. | 
| 385   std::stack<FetchedCRXFile> fetched_crx_files_; | 385   std::stack<FetchedCRXFile> fetched_crx_files_; | 
| 386 | 386 | 
| 387   FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory); | 387   FRIEND_TEST(ExtensionUpdaterTest, TestStartUpdateCheckMemory); | 
| 388   FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior); | 388   FRIEND_TEST(ExtensionUpdaterTest, TestAfterStopBehavior); | 
| 389 | 389 | 
| 390   DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 390   DISALLOW_COPY_AND_ASSIGN(ExtensionUpdater); | 
| 391 }; | 391 }; | 
| 392 | 392 | 
| 393 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ | 393 #endif  // CHROME_BROWSER_EXTENSIONS_EXTENSION_UPDATER_H_ | 
| OLD | NEW | 
|---|