OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ | 5 #ifndef CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ |
6 #define CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ | 6 #define CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "chromeos/components/tether/message_transfer_operation.h" | 9 #include "chromeos/components/tether/message_transfer_operation.h" |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void RemoveObserver(Observer* observer); | 51 void RemoveObserver(Observer* observer); |
52 | 52 |
53 protected: | 53 protected: |
54 void NotifyObserversOperationFinished(bool success); | 54 void NotifyObserversOperationFinished(bool success); |
55 | 55 |
56 // MessageTransferOperation: | 56 // MessageTransferOperation: |
57 void OnDeviceAuthenticated( | 57 void OnDeviceAuthenticated( |
58 const cryptauth::RemoteDevice& remote_device) override; | 58 const cryptauth::RemoteDevice& remote_device) override; |
59 void OnOperationFinished() override; | 59 void OnOperationFinished() override; |
60 MessageType GetMessageTypeForConnection() override; | 60 MessageType GetMessageTypeForConnection() override; |
| 61 bool ShouldWaitForResponse() override; |
61 | 62 |
62 private: | 63 private: |
63 friend class DisconnectTetheringOperationTest; | 64 friend class DisconnectTetheringOperationTest; |
64 | 65 |
65 base::ObserverList<Observer> observer_list_; | 66 base::ObserverList<Observer> observer_list_; |
66 std::string device_id_; | 67 std::string device_id_; |
67 bool has_authenticated_; | 68 bool has_authenticated_; |
68 | 69 |
69 DISALLOW_COPY_AND_ASSIGN(DisconnectTetheringOperation); | 70 DISALLOW_COPY_AND_ASSIGN(DisconnectTetheringOperation); |
70 }; | 71 }; |
71 | 72 |
72 } // namespace tether | 73 } // namespace tether |
73 | 74 |
74 } // namespace chromeos | 75 } // namespace chromeos |
75 | 76 |
76 #endif // CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ | 77 #endif // CHROMEOS_COMPONENTS_TETHER_DISCONNECT_TETHERING_OPERATION_H_ |
OLD | NEW |