| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // Called when the user press AGREE button on ToS page. | 41 // Called when the user press AGREE button on ToS page. |
| 42 // TODO(hidehiko): Currently, due to implementation reason, | 42 // TODO(hidehiko): Currently, due to implementation reason, |
| 43 // this is also called when RETRY on error page is clicked. Fix this. | 43 // this is also called when RETRY on error page is clicked. Fix this. |
| 44 virtual void OnTermsAgreed(bool is_metrics_enabled, | 44 virtual void OnTermsAgreed(bool is_metrics_enabled, |
| 45 bool is_backup_and_restore_enabled, | 45 bool is_backup_and_restore_enabled, |
| 46 bool is_location_service_enabled) = 0; | 46 bool is_location_service_enabled) = 0; |
| 47 | 47 |
| 48 // Called when LSO auth token fetch is successfully completed. | 48 // Called when LSO auth token fetch is successfully completed. |
| 49 virtual void OnAuthSucceeded(const std::string& auth_code) = 0; | 49 virtual void OnAuthSucceeded(const std::string& auth_code) = 0; |
| 50 | 50 |
| 51 // Called when "RETRY" button on the error page is clicked. |
| 52 virtual void OnRetryClicked() = 0; |
| 53 |
| 51 // Called when send feedback button on error page is clicked. | 54 // Called when send feedback button on error page is clicked. |
| 52 virtual void OnSendFeedbackClicked() = 0; | 55 virtual void OnSendFeedbackClicked() = 0; |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 static const char kHostAppId[]; | 58 static const char kHostAppId[]; |
| 56 static const char kStorageId[]; | 59 static const char kStorageId[]; |
| 57 | 60 |
| 58 ArcSupportHost(); | 61 ArcSupportHost(); |
| 59 ~ArcSupportHost() override; | 62 ~ArcSupportHost() override; |
| 60 | 63 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 PreferenceCheckboxData backup_and_restore_checkbox_; | 124 PreferenceCheckboxData backup_and_restore_checkbox_; |
| 122 PreferenceCheckboxData location_services_checkbox_; | 125 PreferenceCheckboxData location_services_checkbox_; |
| 123 | 126 |
| 124 // The instance is created and managed by Chrome. | 127 // The instance is created and managed by Chrome. |
| 125 arc::ArcSupportMessageHost* message_host_ = nullptr; | 128 arc::ArcSupportMessageHost* message_host_ = nullptr; |
| 126 | 129 |
| 127 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 130 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
| 128 }; | 131 }; |
| 129 | 132 |
| 130 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 133 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| OLD | NEW |