1 // Copyright (c) 2010 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_CHROMEOS_UPDATE_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_ 7 #pragma once 8 9 #include "base/basictypes.h" 10 #include "base/time.h" 11 #include "chrome/browser/chromeos/cros/update_library.h" 12 #include "chrome/browser/chromeos/notifications/system_notification.h" 13 14 class Profile; 15 16 namespace chromeos { 17 18 // The update observer displays a system notification when the an update is 19 // available. 20 21 class UpdateObserver : public UpdateLibrary::Observer { 22 public: 23 explicit UpdateObserver(Profile* profile); 24 virtual ~UpdateObserver(); 25 26 private: 27 virtual void UpdateStatusChanged(UpdateLibrary* library); 28 29 SystemNotification notification_; 30 31 DISALLOW_COPY_AND_ASSIGN(UpdateObserver); 32 }; 33 34 } // namespace chromeos 35 36 #endif // CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_ 37 38