OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/component_updater/component_updater_service.h" | |
10 #include "content/public/browser/web_ui_message_handler.h" | 11 #include "content/public/browser/web_ui_message_handler.h" |
11 | 12 |
12 // The handler for Javascript messages related to the "Chrome Cleanup" view. | 13 // The handler for Javascript messages related to the "Chrome Cleanup" view. |
13 class CleanupActionHandler : public content::WebUIMessageHandler { | 14 class CleanupActionHandler : public content::WebUIMessageHandler { |
14 public: | 15 public: |
15 CleanupActionHandler(); | 16 CleanupActionHandler(); |
16 ~CleanupActionHandler() override; | 17 ~CleanupActionHandler() override; |
17 | 18 |
18 // WebUIMessageHandler implementation. | 19 // WebUIMessageHandler implementation. |
19 void RegisterMessages() override; | 20 void RegisterMessages() override; |
20 | 21 |
21 private: | 22 private: |
22 void HandleRequestLastScanResult(const base::ListValue* args); | 23 void HandleRequestLastScanResult(const base::ListValue* args); |
23 | 24 |
25 void HandleStartScan(const base::ListValue* args); | |
ftirelo
2017/04/13 17:10:43
Please add a description to these two methods.
proberge
2017/04/13 18:53:03
The first one doesn't (implicit description: handl
| |
26 void ReportScanResults(std::string callback_id); | |
ftirelo
2017/04/13 17:10:43
const std::string&
proberge
2017/04/13 18:53:03
Done.
| |
27 | |
24 DISALLOW_COPY_AND_ASSIGN(CleanupActionHandler); | 28 DISALLOW_COPY_AND_ASSIGN(CleanupActionHandler); |
25 }; | 29 }; |
26 | 30 |
27 #endif // CHROME_BROWSER_UI_WEBUI_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ | 31 #endif // CHROME_BROWSER_UI_WEBUI_CLEANUP_TOOL_CLEANUP_ACTION_HANDLER_H_ |
OLD | NEW |