Chromium Code Reviews| Index: chrome/browser/ui/webui/welcome_win10_handler.h |
| diff --git a/chrome/browser/ui/webui/welcome_win10_handler.h b/chrome/browser/ui/webui/welcome_win10_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8acd2a1d09406631804b59f0e2fd4a1fa4917491 |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/welcome_win10_handler.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_WELCOME_WIN10_HANDLER_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_WELCOME_WIN10_HANDLER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/public/browser/web_ui_message_handler.h" |
| + |
| +// Handles actions on the Windows 10 specific Welcome page. |
| +class WelcomeWin10Handler : public content::WebUIMessageHandler { |
| + public: |
| + explicit WelcomeWin10Handler(content::WebUI* web_ui); |
| + ~WelcomeWin10Handler() override; |
| + |
| + // content::WebUIMessageHandler: |
| + void RegisterMessages() override; |
| + |
| + private: |
| + void HandleSetDefaultBrowser(const base::ListValue* args); |
|
michaelpg
2016/10/22 03:19:01
nit: forward declare ListValue
Patrick Monette
2016/10/24 20:49:40
Done.
|
| + void HandleContinue(const base::ListValue* args); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(WelcomeWin10Handler); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_WIN10_HANDLER_H_ |