OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/public/browser/web_ui_message_handler.h" | 10 #include "content/public/browser/web_ui_message_handler.h" |
11 | 11 |
| 12 namespace base { |
| 13 class DictionaryValue; |
| 14 } |
| 15 |
12 namespace signin_metrics { | 16 namespace signin_metrics { |
13 enum class AccessPoint; | 17 enum class AccessPoint; |
14 } | 18 } |
15 | 19 |
16 // The base class handler for the inline login WebUI. | 20 // The base class handler for the inline login WebUI. |
17 class InlineLoginHandler : public content::WebUIMessageHandler { | 21 class InlineLoginHandler : public content::WebUIMessageHandler { |
18 public: | 22 public: |
19 InlineLoginHandler(); | 23 InlineLoginHandler(); |
20 ~InlineLoginHandler() override; | 24 ~InlineLoginHandler() override; |
21 | 25 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 63 |
60 virtual void SetExtraInitParams(base::DictionaryValue& params) {} | 64 virtual void SetExtraInitParams(base::DictionaryValue& params) {} |
61 virtual void CompleteLogin(const base::ListValue* args) = 0; | 65 virtual void CompleteLogin(const base::ListValue* args) = 0; |
62 | 66 |
63 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; | 67 base::WeakPtrFactory<InlineLoginHandler> weak_ptr_factory_; |
64 | 68 |
65 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); | 69 DISALLOW_COPY_AND_ASSIGN(InlineLoginHandler); |
66 }; | 70 }; |
67 | 71 |
68 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ | 72 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_H_ |
OLD | NEW |