| 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 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 // The argument message_host is used to check if the given |message_host| | 85 // The argument message_host is used to check if the given |message_host| |
| 86 // is what this instance uses know, to avoid racy case. | 86 // is what this instance uses know, to avoid racy case. |
| 87 // If |message_host| is different from the one this instance knows, | 87 // If |message_host| is different from the one this instance knows, |
| 88 // this is no op. | 88 // this is no op. |
| 89 void UnsetMessageHost(arc::ArcSupportMessageHost* message_host); | 89 void UnsetMessageHost(arc::ArcSupportMessageHost* message_host); |
| 90 | 90 |
| 91 // Sets the ARC managed state. This must be called before ARC support app | 91 // Sets the ARC managed state. This must be called before ARC support app |
| 92 // is started. | 92 // is started. |
| 93 void SetArcManaged(bool is_arc_managed); | 93 void SetArcManaged(bool is_arc_managed); |
| 94 | 94 |
| 95 // Sets silent mode that suppresses the showing UI page on low priority UI |
| 96 // events such as Arc loading progress. |
| 97 void SetSilentMode(); |
| 98 |
| 95 // Requests to close the extension window. | 99 // Requests to close the extension window. |
| 96 void Close(); | 100 void Close(); |
| 97 | 101 |
| 98 // Requests to show the "Terms Of Service" page. | 102 // Requests to show the "Terms Of Service" page. |
| 99 void ShowTermsOfService(); | 103 void ShowTermsOfService(); |
| 100 | 104 |
| 101 // Requests to show the LSO page. | 105 // Requests to show the LSO page. |
| 102 void ShowLso(); | 106 void ShowLso(); |
| 103 | 107 |
| 104 // Requests to show the "ARC is loading" page. | 108 // Requests to show the "ARC is loading" page. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 // Fields below are UI parameter cache in case the value is set before | 179 // Fields below are UI parameter cache in case the value is set before |
| 176 // connection to the ARC support Chrome app is established. | 180 // connection to the ARC support Chrome app is established. |
| 177 UIPage ui_page_ = UIPage::NO_PAGE; | 181 UIPage ui_page_ = UIPage::NO_PAGE; |
| 178 | 182 |
| 179 // These have valid values iff ui_page_ == ERROR. | 183 // These have valid values iff ui_page_ == ERROR. |
| 180 Error error_; | 184 Error error_; |
| 181 bool should_show_send_feedback_; | 185 bool should_show_send_feedback_; |
| 182 | 186 |
| 183 bool is_arc_managed_ = false; | 187 bool is_arc_managed_ = false; |
| 184 | 188 |
| 189 // Silent mode suppresses the showing UI page on low priority UI events such |
| 190 // as Arc loading progress. |
| 191 bool silent_mode_ = false; |
| 192 |
| 185 PreferenceCheckboxData metrics_checkbox_; | 193 PreferenceCheckboxData metrics_checkbox_; |
| 186 PreferenceCheckboxData backup_and_restore_checkbox_; | 194 PreferenceCheckboxData backup_and_restore_checkbox_; |
| 187 PreferenceCheckboxData location_services_checkbox_; | 195 PreferenceCheckboxData location_services_checkbox_; |
| 188 | 196 |
| 189 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); | 197 DISALLOW_COPY_AND_ASSIGN(ArcSupportHost); |
| 190 }; | 198 }; |
| 191 | 199 |
| 192 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ | 200 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_SUPPORT_HOST_H_ |
| OLD | NEW |