Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_WEBUI_MESSAGE_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_WEBUI_MESSAGE_HANDLER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "content/public/browser/web_ui_message_handler.h" | |
| 10 | |
| 11 namespace content { | |
| 12 class WebUI; | |
| 13 } | |
|
afakhry
2016/08/11 23:31:31
We don't need this forward declare here. Please re
apacible
2016/08/12 01:46:42
Done.
| |
| 14 | |
| 15 class MdFeedbackUI; | |
| 16 | |
| 17 // The handler for Javascript messages related to the feedback dialog. | |
| 18 class MdFeedbackWebUIMessageHandler : public content::WebUIMessageHandler { | |
| 19 public: | |
| 20 explicit MdFeedbackWebUIMessageHandler(MdFeedbackUI* md_feedback_ui); | |
| 21 ~MdFeedbackWebUIMessageHandler() override; | |
| 22 | |
| 23 private: | |
| 24 // WebUIMessageHandler implementation. | |
|
afakhry
2016/08/11 23:31:31
Recently this parent-class override comment has be
apacible
2016/08/12 01:46:42
Done.
| |
| 25 void RegisterMessages() override; | |
| 26 | |
| 27 // Handlers for JavaScript messages. | |
|
afakhry
2016/08/11 23:31:32
Hmmm, I'd rather this comment tells us what OnRequ
apacible
2016/08/12 01:46:42
Done.
| |
| 28 void OnRequestData(const base::ListValue* args); | |
| 29 | |
| 30 MdFeedbackUI* md_feedback_ui_; | |
|
afakhry
2016/08/11 23:31:32
Nit [optional]:
MdFeedbackUI* md_feedback_ui_; //
apacible
2016/08/12 01:46:42
Done.
| |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(MdFeedbackWebUIMessageHandler); | |
| 33 }; | |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_WEBUI_MD_FEEDBACK_MD_FEEDBACK_WEBUI_MESSAGE_HANDLER _H_ | |
| OLD | NEW |