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 COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ | 5 #ifndef COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ |
6 #define COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ | 6 #define COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 typedef base::Callback<void(scoped_ptr<HostPairingController>)> | 22 typedef base::Callback<void(scoped_ptr<HostPairingController>)> |
23 OnConnectedCallback; | 23 OnConnectedCallback; |
24 | 24 |
25 explicit SharkConnectionListener(OnConnectedCallback callback); | 25 explicit SharkConnectionListener(OnConnectedCallback callback); |
26 virtual ~SharkConnectionListener(); | 26 virtual ~SharkConnectionListener(); |
27 | 27 |
28 private: | 28 private: |
29 typedef HostPairingController::Stage Stage; | 29 typedef HostPairingController::Stage Stage; |
30 | 30 |
31 // HostPairingController::Observer overrides: | 31 // HostPairingController::Observer overrides: |
32 virtual void PairingStageChanged(Stage new_stage) OVERRIDE; | 32 virtual void PairingStageChanged(Stage new_stage) override; |
33 virtual void ConfigureHost(bool accepted_eula, | 33 virtual void ConfigureHost(bool accepted_eula, |
34 const std::string& lang, | 34 const std::string& lang, |
35 const std::string& timezone, | 35 const std::string& timezone, |
36 bool send_reports, | 36 bool send_reports, |
37 const std::string& keyboard_layout) OVERRIDE; | 37 const std::string& keyboard_layout) override; |
38 virtual void EnrollHost(const std::string& auth_token) OVERRIDE; | 38 virtual void EnrollHost(const std::string& auth_token) override; |
39 | 39 |
40 OnConnectedCallback callback_; | 40 OnConnectedCallback callback_; |
41 scoped_ptr<HostPairingController> controller_; | 41 scoped_ptr<HostPairingController> controller_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(SharkConnectionListener); | 43 DISALLOW_COPY_AND_ASSIGN(SharkConnectionListener); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace pairing_chromeos | 46 } // namespace pairing_chromeos |
47 | 47 |
48 #endif // COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ | 48 #endif // COMPONENTS_PAIRING_SHARK_CONNECTION_LISTENER_H_ |
OLD | NEW |