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

Side by Side Diff: chrome/browser/ui/webui/help/version_updater.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_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_
6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 24 matching lines...) Expand all
35 enum PromotionState { 35 enum PromotionState {
36 PROMOTE_HIDDEN, 36 PROMOTE_HIDDEN,
37 PROMOTE_ENABLED, 37 PROMOTE_ENABLED,
38 PROMOTE_DISABLED 38 PROMOTE_DISABLED
39 }; 39 };
40 40
41 // TODO(jhawkins): Use a delegate interface instead of multiple callback 41 // TODO(jhawkins): Use a delegate interface instead of multiple callback
42 // types. 42 // types.
43 #if defined(OS_CHROMEOS) 43 #if defined(OS_CHROMEOS)
44 typedef base::Callback<void(const std::string&)> ChannelCallback; 44 typedef base::Callback<void(const std::string&)> ChannelCallback;
45 typedef base::Callback<void(int status)> EolStatusCallback;
45 #endif 46 #endif
46 47
47 // Used to update the client of status changes. int parameter is the progress 48 // Used to update the client of status changes. int parameter is the progress
48 // and should only be non-zero for the UPDATING state. 49 // and should only be non-zero for the UPDATING state.
49 // base::string16 parameter is a message explaining a failure. 50 // base::string16 parameter is a message explaining a failure.
50 typedef base::Callback<void(Status, int, const base::string16&)> 51 typedef base::Callback<void(Status, int, const base::string16&)>
51 StatusCallback; 52 StatusCallback;
52 53
53 // Used to show or hide the promote UI elements. Mac-only. 54 // Used to show or hide the promote UI elements. Mac-only.
54 typedef base::Callback<void(PromotionState)> PromoteCallback; 55 typedef base::Callback<void(PromotionState)> PromoteCallback;
(...skipping 16 matching lines...) Expand all
71 #if defined(OS_MACOSX) 72 #if defined(OS_MACOSX)
72 // Make updates available for all users. 73 // Make updates available for all users.
73 virtual void PromoteUpdater() const = 0; 74 virtual void PromoteUpdater() const = 0;
74 #endif 75 #endif
75 76
76 #if defined(OS_CHROMEOS) 77 #if defined(OS_CHROMEOS)
77 virtual void SetChannel(const std::string& channel, 78 virtual void SetChannel(const std::string& channel,
78 bool is_powerwash_allowed) = 0; 79 bool is_powerwash_allowed) = 0;
79 virtual void GetChannel(bool get_current_channel, 80 virtual void GetChannel(bool get_current_channel,
80 const ChannelCallback& callback) = 0; 81 const ChannelCallback& callback) = 0;
82 virtual void GetEolStatus(const EolStatusCallback& callback) = 0;
81 #endif 83 #endif
82 }; 84 };
83 85
84 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_ 86 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698