| 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_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 156 |
| 157 // Announcement hasn't been sent for a certain time after registration | 157 // Announcement hasn't been sent for a certain time after registration |
| 158 // finished. Consider it failed. | 158 // finished. Consider it failed. |
| 159 // TODO(noamsml): Re-resolve service first. | 159 // TODO(noamsml): Re-resolve service first. |
| 160 void OnAnnouncementTimeoutReached(); | 160 void OnAnnouncementTimeoutReached(); |
| 161 | 161 |
| 162 void CheckUserLoggedIn(); | 162 void CheckUserLoggedIn(); |
| 163 | 163 |
| 164 void CheckListingDone(); | 164 void CheckListingDone(); |
| 165 | 165 |
| 166 bool IsUserSupervisedOrOffTheRecord(); |
| 167 |
| 166 #if defined(CLOUD_PRINT_CONNECTOR_UI_AVAILABLE) | 168 #if defined(CLOUD_PRINT_CONNECTOR_UI_AVAILABLE) |
| 167 void StartCloudPrintConnector(); | 169 void StartCloudPrintConnector(); |
| 168 void OnCloudPrintPrefsChanged(); | 170 void OnCloudPrintPrefsChanged(); |
| 169 void ShowCloudPrintSetupDialog(const base::ListValue* args); | 171 void ShowCloudPrintSetupDialog(const base::ListValue* args); |
| 170 void HandleDisableCloudPrintConnector(const base::ListValue* args); | 172 void HandleDisableCloudPrintConnector(const base::ListValue* args); |
| 171 void SetupCloudPrintConnectorSection(); | 173 void SetupCloudPrintConnectorSection(); |
| 172 void RemoveCloudPrintConnectorSection(); | 174 void RemoveCloudPrintConnectorSection(); |
| 173 void RefreshCloudPrintStatusFromService(); | 175 void RefreshCloudPrintStatusFromService(); |
| 174 #endif | 176 #endif |
| 175 | 177 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; | 231 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; |
| 230 #endif | 232 #endif |
| 231 | 233 |
| 232 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); | 234 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); |
| 233 }; | 235 }; |
| 234 | 236 |
| 235 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE | 237 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE |
| 236 | 238 |
| 237 } // namespace local_discovery | 239 } // namespace local_discovery |
| 238 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 240 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| OLD | NEW |