Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/ui/webui/help/version_updater_chromeos.h

Issue 2039273003: Cleanup: Remove VersionUpdater::RelaunchBrowser interface method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comment. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/ui/webui/help/version_updater.h" 11 #include "chrome/browser/ui/webui/help/version_updater.h"
12 #include "chromeos/dbus/update_engine_client.h" 12 #include "chromeos/dbus/update_engine_client.h"
13 13
14 namespace content { 14 namespace content {
15 class BrowserContext; 15 class BrowserContext;
16 class WebContents; 16 class WebContents;
17 } 17 }
18 18
19 class VersionUpdaterCros : public VersionUpdater, 19 class VersionUpdaterCros : public VersionUpdater,
20 public chromeos::UpdateEngineClient::Observer { 20 public chromeos::UpdateEngineClient::Observer {
21 public: 21 public:
22 // VersionUpdater implementation. 22 // VersionUpdater implementation.
23 void CheckForUpdate(const StatusCallback& callback, 23 void CheckForUpdate(const StatusCallback& callback,
24 const PromoteCallback&) override; 24 const PromoteCallback&) override;
25 void RelaunchBrowser() const override;
26 void SetChannel(const std::string& channel, 25 void SetChannel(const std::string& channel,
27 bool is_powerwash_allowed) override; 26 bool is_powerwash_allowed) override;
28 void GetChannel(bool get_current_channel, 27 void GetChannel(bool get_current_channel,
29 const ChannelCallback& callback) override; 28 const ChannelCallback& callback) override;
30 29
31 // Gets the last update status, without triggering a new check or download. 30 // Gets the last update status, without triggering a new check or download.
32 void GetUpdateStatus(const StatusCallback& callback); 31 void GetUpdateStatus(const StatusCallback& callback);
33 32
34 protected: 33 protected:
35 friend class VersionUpdater; 34 friend class VersionUpdater;
(...skipping 21 matching lines...) Expand all
57 56
58 // True if an update check should be scheduled when the update engine is idle. 57 // True if an update check should be scheduled when the update engine is idle.
59 bool check_for_update_when_idle_; 58 bool check_for_update_when_idle_;
60 59
61 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; 60 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_;
62 61
63 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); 62 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros);
64 }; 63 };
65 64
66 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 65 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_basic.cc ('k') | chrome/browser/ui/webui/help/version_updater_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698