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 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_ |
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_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" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const std::string& device_id); | 79 const std::string& device_id); |
80 void OnPrivetClientCreated(scoped_ptr<PrivetHTTPClient> privet_http_client); | 80 void OnPrivetClientCreated(scoped_ptr<PrivetHTTPClient> privet_http_client); |
81 void OnCodeConfirmed(bool success); | 81 void OnCodeConfirmed(bool success); |
82 | 82 |
83 void OnSessionInitialized( | 83 void OnSessionInitialized( |
84 PrivetV3Session::Result result, | 84 PrivetV3Session::Result result, |
85 const std::vector<PrivetV3Session::PairingType>& types); | 85 const std::vector<PrivetV3Session::PairingType>& types); |
86 void OnPairingStarted(PrivetV3Session::Result result); | 86 void OnPairingStarted(PrivetV3Session::Result result); |
87 void OnPairingDone(PrivetV3Session::Result result); | 87 void OnPairingDone(PrivetV3Session::Result result); |
88 void OnSetupMessageSent(PrivetV3Session::Result result, | 88 void OnSetupMessageSent(PrivetV3Session::Result result, |
89 const base::DictionaryValue& responce); | 89 const base::DictionaryValue& response); |
90 | 90 |
91 Delegate* delegate_; | 91 Delegate* delegate_; |
92 std::string service_name_; | 92 std::string service_name_; |
93 std::string device_id_; | 93 std::string device_id_; |
94 std::string ticket_id_; | 94 std::string ticket_id_; |
95 scoped_ptr<GCDApiFlow> ticket_request_; | 95 scoped_ptr<GCDApiFlow> ticket_request_; |
96 scoped_ptr<PrivetV3Session> session_; | 96 scoped_ptr<PrivetV3Session> session_; |
97 base::WeakPtrFactory<PrivetV3SetupFlow> weak_ptr_factory_; | 97 base::WeakPtrFactory<PrivetV3SetupFlow> weak_ptr_factory_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(PrivetV3SetupFlow); | 99 DISALLOW_COPY_AND_ASSIGN(PrivetV3SetupFlow); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace local_discovery | 102 } // namespace local_discovery |
103 | 103 |
104 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_ | 104 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVETV3_SETUP_FLOW_H_ |
OLD | NEW |