| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/webui/sync_setup_handler.h" | 9 #include "chrome/browser/ui/webui/sync_setup_handler.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 virtual void ShowSetupUI() OVERRIDE; | 36 virtual void ShowSetupUI() OVERRIDE; |
| 37 | 37 |
| 38 virtual void RecordSignin() OVERRIDE; | 38 virtual void RecordSignin() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // JavaScript callback handler to close the sync promo. | 41 // JavaScript callback handler to close the sync promo. |
| 42 void HandleCloseSyncPromo(const base::ListValue* args); | 42 void HandleCloseSyncPromo(const base::ListValue* args); |
| 43 | 43 |
| 44 // Gets the sync promo layout for the current sync promo version. | |
| 45 int GetPromoVersion(); | |
| 46 | |
| 47 // JavaScript callback handler to initialize the sync promo. | 44 // JavaScript callback handler to initialize the sync promo. |
| 48 void HandleInitializeSyncPromo(const base::ListValue* args); | 45 void HandleInitializeSyncPromo(const base::ListValue* args); |
| 49 | 46 |
| 50 // JavaScript handler to record the duration for which the throbber was | 47 // JavaScript handler to record the duration for which the throbber was |
| 51 // visible during an attempted sign-in flow. | 48 // visible during an attempted sign-in flow. |
| 52 void HandleRecordThrobberTime(const base::ListValue* args); | 49 void HandleRecordThrobberTime(const base::ListValue* args); |
| 53 | 50 |
| 54 // JavaScript handler to record the number of times a user attempted to sign | 51 // JavaScript handler to record the number of times a user attempted to sign |
| 55 // in to chrome while they were on the sync promo page. | 52 // in to chrome while they were on the sync promo page. |
| 56 void HandleRecordSignInAttempts(const base::ListValue* args); | 53 void HandleRecordSignInAttempts(const base::ListValue* args); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 bool window_already_closed_; | 87 bool window_already_closed_; |
| 91 | 88 |
| 92 // Extra UMA histogram name to log stats to, based on the source for showing | 89 // Extra UMA histogram name to log stats to, based on the source for showing |
| 93 // the sync promo page. | 90 // the sync promo page. |
| 94 std::string histogram_name_; | 91 std::string histogram_name_; |
| 95 | 92 |
| 96 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); | 93 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); |
| 97 }; | 94 }; |
| 98 | 95 |
| 99 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ | 96 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ |
| OLD | NEW |