OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SYNC_CONFIRMATION_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 11 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
12 #include "components/signin/core/browser/account_tracker_service.h" | 12 #include "components/signin/core/browser/account_tracker_service.h" |
13 #include "content/public/browser/web_ui_message_handler.h" | 13 #include "content/public/browser/web_ui_message_handler.h" |
14 | 14 |
15 class Browser; | |
16 | |
17 namespace base { | 15 namespace base { |
18 class ListValue; | 16 class ListValue; |
19 } | 17 } |
20 | 18 |
21 class SyncConfirmationHandler : public content::WebUIMessageHandler, | 19 class SyncConfirmationHandler : public content::WebUIMessageHandler, |
22 public AccountTrackerService::Observer { | 20 public AccountTrackerService::Observer { |
23 public: | 21 public: |
24 SyncConfirmationHandler(); | 22 SyncConfirmationHandler(); |
25 ~SyncConfirmationHandler() override; | 23 ~SyncConfirmationHandler() override; |
26 | 24 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 LoginUIService::SyncConfirmationUIClosedResult result); | 60 LoginUIService::SyncConfirmationUIClosedResult result); |
63 | 61 |
64 private: | 62 private: |
65 // Records whether the user clicked on Undo, Ok, or Settings. | 63 // Records whether the user clicked on Undo, Ok, or Settings. |
66 bool did_user_explicitly_interact; | 64 bool did_user_explicitly_interact; |
67 | 65 |
68 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); | 66 DISALLOW_COPY_AND_ASSIGN(SyncConfirmationHandler); |
69 }; | 67 }; |
70 | 68 |
71 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ | 69 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SYNC_CONFIRMATION_HANDLER_H_ |
OLD | NEW |