2013-06-02 16:23:04 +04:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_AUTO_UPDATER_DELEGATE_H_
|
|
|
|
#define ATOM_BROWSER_AUTO_UPDATER_DELEGATE_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "base/callback_forward.h"
|
|
|
|
|
|
|
|
namespace auto_updater {
|
|
|
|
|
|
|
|
class AutoUpdaterDelegate {
|
|
|
|
public:
|
2013-06-03 17:51:46 +04:00
|
|
|
// The application is going to relaunch to install update.
|
2013-06-02 16:23:04 +04:00
|
|
|
virtual void WillInstallUpdate(const std::string& version,
|
|
|
|
const base::Closure& install);
|
|
|
|
|
2013-06-03 17:51:46 +04:00
|
|
|
// User has chosen to update on quit.
|
|
|
|
virtual void ReadyForUpdateOnQuit(const std::string& version,
|
|
|
|
const base::Closure& quit_and_install);
|
|
|
|
|
2013-06-02 16:23:04 +04:00
|
|
|
protected:
|
|
|
|
virtual ~AutoUpdaterDelegate() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace auto_updater
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_AUTO_UPDATER_DELEGATE_H_
|