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

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

Issue 2952133002: Use task runner in version_updater_win.cc. (Closed)
Patch Set: fix nit Created 3 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Windows implementation of version update functionality, used by the WebUI 5 // Windows implementation of version update functionality, used by the WebUI
6 // About/Help page. 6 // About/Help page.
7 7
8 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_ 8 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_
9 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_ 9 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_
10 10
(...skipping 20 matching lines...) Expand all
31 // UpdateCheckDelegate: 31 // UpdateCheckDelegate:
32 void OnUpdateCheckComplete(const base::string16& new_version) override; 32 void OnUpdateCheckComplete(const base::string16& new_version) override;
33 void OnUpgradeProgress(int progress, 33 void OnUpgradeProgress(int progress,
34 const base::string16& new_version) override; 34 const base::string16& new_version) override;
35 void OnUpgradeComplete(const base::string16& new_version) override; 35 void OnUpgradeComplete(const base::string16& new_version) override;
36 void OnError(GoogleUpdateErrorCode error_code, 36 void OnError(GoogleUpdateErrorCode error_code,
37 const base::string16& html_error_message, 37 const base::string16& html_error_message,
38 const base::string16& new_version) override; 38 const base::string16& new_version) override;
39 39
40 private: 40 private:
41 void BeginUpdateCheckOnFileThread(bool install_update_if_possible); 41 void DoBeginUpdateCheck(bool install_update_if_possible);
42 42
43 // A task run on the UI thread with the result of checking for a pending 43 // A task run on the UI thread with the result of checking for a pending
44 // restart. 44 // restart.
45 void OnPendingRestartCheck(bool is_update_pending_restart); 45 void OnPendingRestartCheck(bool is_update_pending_restart);
46 46
47 // The widget owning the UI for the update check. 47 // The widget owning the UI for the update check.
48 gfx::AcceleratedWidget owner_widget_; 48 gfx::AcceleratedWidget owner_widget_;
49 49
50 // Callback used to communicate update status to the client. 50 // Callback used to communicate update status to the client.
51 StatusCallback callback_; 51 StatusCallback callback_;
52 52
53 // Used for callbacks. 53 // Used for callbacks.
54 base::WeakPtrFactory<VersionUpdaterWin> weak_factory_; 54 base::WeakPtrFactory<VersionUpdaterWin> weak_factory_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterWin); 56 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterWin);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_ 59 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698