OLD | NEW |
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_HELP_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Callback method which forwards promotion state to the page. | 74 // Callback method which forwards promotion state to the page. |
75 void SetPromotionState(VersionUpdater::PromotionState state); | 75 void SetPromotionState(VersionUpdater::PromotionState state); |
76 #endif | 76 #endif |
77 | 77 |
78 #if defined(OS_CHROMEOS) | 78 #if defined(OS_CHROMEOS) |
79 // Callbacks from VersionLoader. | 79 // Callbacks from VersionLoader. |
80 void OnOSVersion(const std::string& version); | 80 void OnOSVersion(const std::string& version); |
81 void OnOSFirmware(const std::string& firmware); | 81 void OnOSFirmware(const std::string& firmware); |
82 void OnCurrentChannel(const std::string& channel); | 82 void OnCurrentChannel(const std::string& channel); |
83 void OnTargetChannel(const std::string& channel); | 83 void OnTargetChannel(const std::string& channel); |
84 | |
85 void ProcessLsbFileInfo( | |
86 base::PlatformFileError rv, const base::PlatformFileInfo& file_info); | |
87 #endif | 84 #endif |
88 | 85 |
89 // Specialized instance of the VersionUpdater used to update the browser. | 86 // Specialized instance of the VersionUpdater used to update the browser. |
90 scoped_ptr<VersionUpdater> version_updater_; | 87 scoped_ptr<VersionUpdater> version_updater_; |
91 | 88 |
92 // Used for callbacks. | 89 // Used for callbacks. |
93 base::WeakPtrFactory<HelpHandler> weak_factory_; | 90 base::WeakPtrFactory<HelpHandler> weak_factory_; |
94 | 91 |
95 // Used to observe notifications. | 92 // Used to observe notifications. |
96 content::NotificationRegistrar registrar_; | 93 content::NotificationRegistrar registrar_; |
97 | 94 |
98 #if defined(OS_CHROMEOS) | 95 #if defined(OS_CHROMEOS) |
99 // Handles asynchronously loading the CrOS version info. | 96 // Handles asynchronously loading the CrOS version info. |
100 chromeos::VersionLoader loader_; | 97 chromeos::VersionLoader loader_; |
101 | 98 |
102 // Used to request the version. | 99 // Used to request the version. |
103 CancelableTaskTracker tracker_; | 100 CancelableTaskTracker tracker_; |
104 #endif // defined(OS_CHROMEOS) | 101 #endif // defined(OS_CHROMEOS) |
105 | 102 |
106 DISALLOW_COPY_AND_ASSIGN(HelpHandler); | 103 DISALLOW_COPY_AND_ASSIGN(HelpHandler); |
107 }; | 104 }; |
108 | 105 |
109 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ | 106 #endif // CHROME_BROWSER_UI_WEBUI_HELP_HELP_HANDLER_H_ |
OLD | NEW |