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

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

Issue 2060623002: Implementation of Device End of Life Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modify browsertest 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"
(...skipping 12 matching lines...) Expand all
23 void CheckForUpdate(const StatusCallback& callback, 23 void CheckForUpdate(const StatusCallback& callback,
24 const PromoteCallback&) override; 24 const PromoteCallback&) override;
25 void SetChannel(const std::string& channel, 25 void SetChannel(const std::string& channel,
26 bool is_powerwash_allowed) override; 26 bool is_powerwash_allowed) override;
27 void GetChannel(bool get_current_channel, 27 void GetChannel(bool get_current_channel,
28 const ChannelCallback& callback) override; 28 const ChannelCallback& callback) override;
29 29
30 // 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.
31 void GetUpdateStatus(const StatusCallback& callback); 31 void GetUpdateStatus(const StatusCallback& callback);
32 32
33 void GetEolStatus(const EolStatusCallback& callback) override;
34
33 protected: 35 protected:
34 friend class VersionUpdater; 36 friend class VersionUpdater;
35 37
36 // Clients must use VersionUpdater::Create(). 38 // Clients must use VersionUpdater::Create().
37 explicit VersionUpdaterCros(content::WebContents* web_contents); 39 explicit VersionUpdaterCros(content::WebContents* web_contents);
38 ~VersionUpdaterCros() override; 40 ~VersionUpdaterCros() override;
39 41
40 private: 42 private:
41 // UpdateEngineClient::Observer implementation. 43 // UpdateEngineClient::Observer implementation.
42 void UpdateStatusChanged( 44 void UpdateStatusChanged(
(...skipping 13 matching lines...) Expand all
56 58
57 // True if an update check should be scheduled when the update engine is idle. 59 // True if an update check should be scheduled when the update engine is idle.
58 bool check_for_update_when_idle_; 60 bool check_for_update_when_idle_;
59 61
60 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; 62 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_;
61 63
62 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); 64 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros);
63 }; 65 };
64 66
65 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 67 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698