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

Side by Side Diff: chrome/browser/ui/webui/user_actions/user_actions_ui_handler.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_
7 7
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "content/public/browser/web_ui_message_handler.h" 9 #include "content/public/browser/web_ui_message_handler.h"
10 10
11 // UI Handler for chrome://user-actions/ 11 // UI Handler for chrome://user-actions/
12 // It listens to user action notifications and passes those notifications 12 // It listens to user action notifications and passes those notifications
13 // into the Javascript to update the page. 13 // into the Javascript to update the page.
14 class UserActionsUIHandler : public content::WebUIMessageHandler { 14 class UserActionsUIHandler : public content::WebUIMessageHandler {
15 public: 15 public:
16 UserActionsUIHandler(); 16 UserActionsUIHandler();
17 virtual ~UserActionsUIHandler(); 17 ~UserActionsUIHandler() override;
18 18
19 // WebUIMessageHandler implementation: 19 // WebUIMessageHandler implementation:
20 // Does nothing for now. 20 // Does nothing for now.
21 virtual void RegisterMessages() override; 21 void RegisterMessages() override;
22 22
23 private: 23 private:
24 void OnUserAction(const std::string& action); 24 void OnUserAction(const std::string& action);
25 25
26 base::ActionCallback action_callback_; 26 base::ActionCallback action_callback_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(UserActionsUIHandler); 28 DISALLOW_COPY_AND_ASSIGN(UserActionsUIHandler);
29 }; 29 };
30 30
31 #endif // CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_ 31 #endif // CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698