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

Side by Side Diff: chromeos/components/tether/disconnect_tethering_operation.h

Issue 2915713002: Tether MessageTransferOperation: Only wait for a response from a host for a certain amount of time … (Closed)
Patch Set: Remove useless test method. Created 3 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
« no previous file with comments | « no previous file | chromeos/components/tether/disconnect_tethering_operation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chromeos/components/tether/disconnect_tethering_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698