OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "chrome/browser/local_discovery/privetv3_setup_flow.h" | 5 #include "chrome/browser/local_discovery/privetv3_setup_flow.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace local_discovery { | 9 namespace local_discovery { |
10 | 10 |
11 scoped_ptr<PrivetV3SetupFlow> PrivetV3SetupFlow::CreateMDnsOnlyFlow( | 11 PrivetV3SetupFlow::Delegate::~Delegate() { |
12 ServiceDiscoveryClient* service_discovery_client, | 12 } |
13 const std::string& service_name) { | 13 |
| 14 PrivetV3SetupFlow::PrivetV3SetupFlow(Delegate* delegate) |
| 15 : delegate_(delegate), weak_ptr_factory_(this) { |
| 16 } |
| 17 |
| 18 PrivetV3SetupFlow::~PrivetV3SetupFlow() { |
| 19 } |
| 20 |
| 21 void PrivetV3SetupFlow::Register(const std::string& service_name) { |
14 NOTIMPLEMENTED(); | 22 NOTIMPLEMENTED(); |
15 return scoped_ptr<PrivetV3SetupFlow>(); | |
16 } | 23 } |
17 | 24 |
18 #if defined(ENABLE_WIFI_BOOTSTRAPPING) | 25 #if defined(ENABLE_WIFI_BOOTSTRAPPING) |
19 scoped_ptr<PrivetV3SetupFlow> PrivetV3SetupFlow::CreateWifiFlow( | 26 void PrivetV3SetupFlow::SetupWifiAndRegister(const std::string& device_ssid) { |
20 ServiceDiscoveryClient* service_discovery_client, | |
21 wifi::WifiManager* wifi_manager, | |
22 // The SSID of the network whose credentials we will be provisioning. | |
23 const std::string& credentials_ssid, | |
24 // The SSID of the device we will be provisioning. | |
25 const std::string& device_ssid) { | |
26 NOTIMPLEMENTED(); | 27 NOTIMPLEMENTED(); |
27 return scoped_ptr<PrivetV3SetupFlow>(); | |
28 } | 28 } |
29 #endif | 29 #endif // ENABLE_WIFI_BOOTSTRAPPING |
30 | 30 |
31 } // namespace local_discovery | 31 } // namespace local_discovery |
OLD | NEW |