Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(712)

Side by Side Diff: chrome/browser/local_discovery/privetv3_setup_flow.h

Issue 305533007: Rename PrivetV2 to PrivetV3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV2_SETUP_FLOW_H_ 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV2_SETUP_FLOW_H_ 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 namespace local_discovery { 13 namespace local_discovery {
14 14
15 class ServiceDiscoveryClient; 15 class ServiceDiscoveryClient;
16 16
17 #if defined(ENABLE_WIFI_BOOTSTRAPPING) 17 #if defined(ENABLE_WIFI_BOOTSTRAPPING)
18 namespace wifi { 18 namespace wifi {
19 class WifiManager; 19 class WifiManager;
20 }; 20 };
21 #endif 21 #endif
22 22
23 class PrivetV2SetupFlow { 23 class PrivetV3SetupFlow {
24 public: 24 public:
25 class Delegate { 25 class Delegate {
26 public: 26 public:
27 typedef base::Callback<void(bool confirm)> ConfirmationCallback; 27 typedef base::Callback<void(bool confirm)> ConfirmationCallback;
28 typedef base::Callback<void(const std::string& key)> CredentialsCallback; 28 typedef base::Callback<void(const std::string& key)> CredentialsCallback;
29 29
30 virtual ~Delegate() {} 30 virtual ~Delegate() {}
31 31
32 #if defined(ENABLE_WIFI_BOOTSTRAPPING) 32 #if defined(ENABLE_WIFI_BOOTSTRAPPING)
33 virtual void OnSetupCredentialsNeeded(const std::string& ssid, 33 virtual void OnSetupCredentialsNeeded(const std::string& ssid,
34 const CredentialsCallback& callback); 34 const CredentialsCallback& callback);
35 #endif 35 #endif
36 36
37 virtual void OnSetupConfirmationNeeded( 37 virtual void OnSetupConfirmationNeeded(
38 const std::string& confirmation_code, 38 const std::string& confirmation_code,
39 const ConfirmationCallback& callback) = 0; 39 const ConfirmationCallback& callback) = 0;
40 40
41 virtual void OnSetupDone() = 0; 41 virtual void OnSetupDone() = 0;
42 42
43 virtual void OnSetupError() = 0; 43 virtual void OnSetupError() = 0;
44 }; 44 };
45 45
46 virtual ~PrivetV2SetupFlow() {} 46 virtual ~PrivetV3SetupFlow() {}
47 47
48 static scoped_ptr<PrivetV2SetupFlow> CreateMDnsOnlyFlow( 48 static scoped_ptr<PrivetV3SetupFlow> CreateMDnsOnlyFlow(
49 ServiceDiscoveryClient* service_discovery_client, 49 ServiceDiscoveryClient* service_discovery_client,
50 const std::string& service_name); 50 const std::string& service_name);
51 51
52 #if defined(ENABLE_WIFI_BOOTSTRAPPING) 52 #if defined(ENABLE_WIFI_BOOTSTRAPPING)
53 static scoped_ptr<PrivetV2SetupFlow> CreateWifiFlow( 53 static scoped_ptr<PrivetV3SetupFlow> CreateWifiFlow(
54 ServiceDiscoveryClient* service_discovery_client, 54 ServiceDiscoveryClient* service_discovery_client,
55 wifi::WifiManager* wifi_manager, 55 wifi::WifiManager* wifi_manager,
56 // The SSID of the network whose credentials we will be provisioning. 56 // The SSID of the network whose credentials we will be provisioning.
57 const std::string& credentials_ssid, 57 const std::string& credentials_ssid,
58 // The SSID of the device we will be provisioning. 58 // The SSID of the device we will be provisioning.
59 const std::string& device_ssid); 59 const std::string& device_ssid);
60 #endif 60 #endif
61 61
62 virtual void Start() = 0; 62 virtual void Start() = 0;
63 }; 63 };
64 64
65 } // namespace local_discovery 65 } // namespace local_discovery
66 66
67 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV2_SETUP_FLOW_H_ 67 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/privetv3_session.cc ('k') | chrome/browser/local_discovery/privetv3_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698