OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ | |
7 #pragma once | |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "chrome/browser/ui/webui/help/version_updater.h" | |
11 | |
12 // Bare bones implementation just checks if a new version is ready. | |
13 class VersionUpdaterBasic : public VersionUpdater { | |
14 public: | |
15 // VersionUpdater implementation. | |
16 virtual void CheckForUpdate(const StatusCallback& callback) OVERRIDE; | |
17 virtual void RelaunchBrowser() const OVERRIDE; | |
18 | |
19 protected: | |
20 friend class VersionUpdater; | |
21 | |
22 // Clients must use VersionUpdater::Create(). | |
23 VersionUpdaterBasic() {} | |
24 virtual ~VersionUpdaterBasic() {} | |
25 | |
26 private: | |
27 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterBasic); | |
28 }; | |
29 | |
30 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_BASIC_H_ | |
OLD | NEW |