OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_DICE_INTERNALS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_DICE_INTERNALS_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/public/browser/web_ui_message_handler.h" |
| 10 |
| 11 namespace base { |
| 12 class ListValue; |
| 13 } |
| 14 class Profile; |
| 15 |
| 16 class SigninDiceInternalsHandler : public content::WebUIMessageHandler { |
| 17 public: |
| 18 explicit SigninDiceInternalsHandler(Profile* profile); |
| 19 ~SigninDiceInternalsHandler() override; |
| 20 |
| 21 // content::WebUIMessageHandler: |
| 22 void RegisterMessages() override; |
| 23 |
| 24 private: |
| 25 // Handler for enable sync event. |
| 26 void HandleEnableSync(const base::ListValue* args); |
| 27 |
| 28 Profile* profile_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(SigninDiceInternalsHandler); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_DICE_INTERNALS_HANDLER_H_ |
OLD | NEW |