update_observer.h 665 B

12345678910111213141516171819202122232425
  1. // Copyright 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. #ifndef EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_
  5. #define EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_
  6. namespace extensions {
  7. class Extension;
  8. class UpdateObserver {
  9. public:
  10. // Invoked when an app update is available.
  11. virtual void OnAppUpdateAvailable(const Extension* extension) = 0;
  12. // Invoked when Chrome update is available.
  13. virtual void OnChromeUpdateAvailable() = 0;
  14. protected:
  15. virtual ~UpdateObserver() {}
  16. };
  17. } // namespace extensions
  18. #endif // EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_