2013-06-02 12:23:04 +00:00
|
|
|
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
2014-04-25 09:49:37 +00:00
|
|
|
// Use of this source code is governed by the MIT license that can be
|
2013-06-02 12:23:04 +00:00
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef ATOM_BROWSER_AUTO_UPDATER_H_
|
|
|
|
#define ATOM_BROWSER_AUTO_UPDATER_H_
|
|
|
|
|
2013-06-03 02:34:42 +00:00
|
|
|
#include <string>
|
|
|
|
|
2013-06-02 12:23:04 +00:00
|
|
|
#include "base/basictypes.h"
|
|
|
|
|
|
|
|
namespace auto_updater {
|
|
|
|
|
|
|
|
class AutoUpdaterDelegate;
|
|
|
|
|
|
|
|
class AutoUpdater {
|
|
|
|
public:
|
|
|
|
// Gets/Sets the delegate.
|
|
|
|
static AutoUpdaterDelegate* GetDelegate();
|
|
|
|
static void SetDelegate(AutoUpdaterDelegate* delegate);
|
|
|
|
|
2013-06-03 02:34:42 +00:00
|
|
|
static void SetFeedURL(const std::string& url);
|
|
|
|
static void CheckForUpdates();
|
2013-06-02 12:23:04 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
static AutoUpdaterDelegate* delegate_;
|
|
|
|
|
|
|
|
DISALLOW_IMPLICIT_CONSTRUCTORS(AutoUpdater);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace auto_updater
|
|
|
|
|
|
|
|
#endif // ATOM_BROWSER_AUTO_UPDATER_H_
|