| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/component_updater/component_updater_service.h" |
| 10 |
| 11 struct CrxUpdateItem; |
| 12 |
| 13 namespace component_updater { |
| 14 |
| 15 enum Events { |
| 16 // The update has completed, with success or with an error. |
| 17 kEventUpdateComplete, |
| 18 }; |
| 19 |
| 20 // Provides an event sink for the ComponentUpdaterService. |
| 21 class ComponentUpdaterServiceObserver { |
| 22 public: |
| 23 explicit ComponentUpdaterServiceObserver( |
| 24 ComponentUpdateService::Configurator* config); |
| 25 ~ComponentUpdaterServiceObserver(); |
| 26 |
| 27 void OnEvent(Events event, const CrxUpdateItem* item); |
| 28 |
| 29 private: |
| 30 ComponentUpdateService::Configurator* config_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(ComponentUpdaterServiceObserver); |
| 33 }; |
| 34 |
| 35 } // namespace component_updater |
| 36 |
| 37 #endif // CHROME_BROWSER_COMPONENT_UPDATER_COMPONENT_UPDATER_SERVICE_OBSERVER_H
_ |
| 38 |
| OLD | NEW |