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
3 // found in the LICENSE file.
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_
8 #include "content/public/browser/user_metrics.h"
9 #include "content/public/browser/web_ui_message_handler.h"
11 // UI Handler for chrome://user-actions/
12 // It listens to user action notifications and passes those notifications
13 // into the Javascript to update the page.
14 class UserActionsUIHandler : public content::WebUIMessageHandler {
16 UserActionsUIHandler();
17 virtual ~UserActionsUIHandler();
19 // WebUIMessageHandler implementation:
20 // Does nothing for now.
21 virtual void RegisterMessages() OVERRIDE;
24 void OnUserAction(const std::string& action);
26 content::ActionCallback action_callback_;
28 DISALLOW_COPY_AND_ASSIGN(UserActionsUIHandler);
31 #endif // CHROME_BROWSER_UI_WEBUI_USER_ACTIONS_USER_ACTIONS_UI_HANDLER_H_