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

Side by Side Diff: components/proximity_auth/client.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 COMPONENTS_PROXIMITY_AUTH_CLIENT_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_H
6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_H
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Handles an incoming "decrypt_response" message, parsing and notifying 85 // Handles an incoming "decrypt_response" message, parsing and notifying
86 // observers of the decrypted content. 86 // observers of the decrypted content.
87 void HandleDecryptResponseMessage(const base::DictionaryValue& message); 87 void HandleDecryptResponseMessage(const base::DictionaryValue& message);
88 88
89 // Handles an incoming "unlock_response" message, notifying observers of the 89 // Handles an incoming "unlock_response" message, notifying observers of the
90 // response. 90 // response.
91 void HandleUnlockResponseMessage(const base::DictionaryValue& message); 91 void HandleUnlockResponseMessage(const base::DictionaryValue& message);
92 92
93 // ConnectionObserver: 93 // ConnectionObserver:
94 virtual void OnConnectionStatusChanged( 94 void OnConnectionStatusChanged(const Connection& connection,
95 const Connection& connection, 95 Connection::Status old_status,
96 Connection::Status old_status, 96 Connection::Status new_status) override;
97 Connection::Status new_status) override; 97 void OnMessageReceived(const Connection& connection,
98 virtual void OnMessageReceived(const Connection& connection, 98 const WireMessage& wire_message) override;
99 const WireMessage& wire_message) override; 99 void OnSendCompleted(const Connection& connection,
100 virtual void OnSendCompleted(const Connection& connection, 100 const WireMessage& wire_message,
101 const WireMessage& wire_message, 101 bool success) override;
102 bool success) override;
103 102
104 // The connection used to send and receive events and status updates. 103 // The connection used to send and receive events and status updates.
105 scoped_ptr<Connection> connection_; 104 scoped_ptr<Connection> connection_;
106 105
107 // Used to encrypt and decrypt payloads sent and received over the 106 // Used to encrypt and decrypt payloads sent and received over the
108 // |connection_|. 107 // |connection_|.
109 scoped_ptr<SecureContext> secure_context_; 108 scoped_ptr<SecureContext> secure_context_;
110 109
111 // The registered observers of |this_| client. 110 // The registered observers of |this_| client.
112 ObserverList<ClientObserver> observers_; 111 ObserverList<ClientObserver> observers_;
113 112
114 // Queue of messages to send to the remote device. 113 // Queue of messages to send to the remote device.
115 std::deque<PendingMessage> queued_messages_; 114 std::deque<PendingMessage> queued_messages_;
116 115
117 // The current message being sent or waiting on the remote device for a 116 // The current message being sent or waiting on the remote device for a
118 // response. Null if there is no message currently in this state. 117 // response. Null if there is no message currently in this state.
119 scoped_ptr<PendingMessage> pending_message_; 118 scoped_ptr<PendingMessage> pending_message_;
120 119
121 DISALLOW_COPY_AND_ASSIGN(Client); 120 DISALLOW_COPY_AND_ASSIGN(Client);
122 }; 121 };
123 122
124 } // namespace proximity_auth 123 } // namespace proximity_auth
125 124
126 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H 125 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H
OLDNEW
« no previous file with comments | « components/proximity_auth/bluetooth_connection_unittest.cc ('k') | components/proximity_auth/client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698