| 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 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/local_discovery/wifi/bootstrapping_device_lister.h" | 26 #include "chrome/browser/local_discovery/wifi/bootstrapping_device_lister.h" |
| 27 #include "chrome/browser/local_discovery/wifi/wifi_manager.h" | 27 #include "chrome/browser/local_discovery/wifi/wifi_manager.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 // TODO(noamsml): Factor out full registration flow into single class | 30 // TODO(noamsml): Factor out full registration flow into single class |
| 31 namespace local_discovery { | 31 namespace local_discovery { |
| 32 | 32 |
| 33 class PrivetConfirmApiCallFlow; | 33 class PrivetConfirmApiCallFlow; |
| 34 class PrivetHTTPAsynchronousFactory; | 34 class PrivetHTTPAsynchronousFactory; |
| 35 class PrivetHTTPResolution; | 35 class PrivetHTTPResolution; |
| 36 class PrivetV1HTTPClient; |
| 36 class ServiceDiscoverySharedClient; | 37 class ServiceDiscoverySharedClient; |
| 37 | 38 |
| 38 // UI Handler for chrome://devices/ | 39 // UI Handler for chrome://devices/ |
| 39 // It listens to local discovery notifications and passes those notifications | 40 // It listens to local discovery notifications and passes those notifications |
| 40 // into the Javascript to update the page. | 41 // into the Javascript to update the page. |
| 41 class LocalDiscoveryUIHandler : public content::WebUIMessageHandler, | 42 class LocalDiscoveryUIHandler : public content::WebUIMessageHandler, |
| 42 public PrivetRegisterOperation::Delegate, | 43 public PrivetRegisterOperation::Delegate, |
| 43 public PrivetDeviceLister::Delegate, | 44 public PrivetDeviceLister::Delegate, |
| 44 public CloudDeviceListDelegate, | 45 public CloudDeviceListDelegate, |
| 45 public SigninManagerBase::Observer { | 46 public SigninManagerBase::Observer { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 #endif | 160 #endif |
| 160 | 161 |
| 161 #if defined(ENABLE_WIFI_BOOTSTRAPPING) | 162 #if defined(ENABLE_WIFI_BOOTSTRAPPING) |
| 162 void StartWifiBootstrapping(); | 163 void StartWifiBootstrapping(); |
| 163 void OnBootstrappingDeviceChanged( | 164 void OnBootstrappingDeviceChanged( |
| 164 bool available, | 165 bool available, |
| 165 const wifi::BootstrappingDeviceDescription& description); | 166 const wifi::BootstrappingDeviceDescription& description); |
| 166 #endif | 167 #endif |
| 167 | 168 |
| 168 // The current HTTP client (used for the current operation). | 169 // The current HTTP client (used for the current operation). |
| 169 scoped_ptr<PrivetHTTPClient> current_http_client_; | 170 scoped_ptr<PrivetV1HTTPClient> current_http_client_; |
| 170 | 171 |
| 171 // The current register operation. Only one allowed at any time. | 172 // The current register operation. Only one allowed at any time. |
| 172 scoped_ptr<PrivetRegisterOperation> current_register_operation_; | 173 scoped_ptr<PrivetRegisterOperation> current_register_operation_; |
| 173 | 174 |
| 174 // The current confirm call used during the registration flow. | 175 // The current confirm call used during the registration flow. |
| 175 scoped_ptr<GCDApiFlow> confirm_api_call_flow_; | 176 scoped_ptr<GCDApiFlow> confirm_api_call_flow_; |
| 176 | 177 |
| 177 // The device lister used to list devices on the local network. | 178 // The device lister used to list devices on the local network. |
| 178 scoped_ptr<PrivetDeviceLister> privet_lister_; | 179 scoped_ptr<PrivetDeviceLister> privet_lister_; |
| 179 | 180 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 210 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; | 211 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; |
| 211 #endif | 212 #endif |
| 212 | 213 |
| 213 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); | 214 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE | 217 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE |
| 217 | 218 |
| 218 } // namespace local_discovery | 219 } // namespace local_discovery |
| 219 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 220 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| OLD | NEW |