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 5 #ifndef EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_ 6 #define EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_ 7 8 #include <string> 9 10 namespace extensions { 11 class Extension; 12 13 class UpdateObserver { 14 public: 15 // Invoked when an app update is available. 16 virtual void OnAppUpdateAvailable(const Extension* extension) = 0; 17 18 // Invoked when Chrome update is available. 19 virtual void OnChromeUpdateAvailable() = 0; 20 21 protected: ~UpdateObserver()22 virtual ~UpdateObserver() {} 23 }; 24 25 } // namespace extensions 26 27 #endif // EXTENSIONS_BROWSER_UPDATE_OBSERVER_H_ 28