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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 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 | « components/policy/core/common/schema_registry.h ('k') | components/proximity_auth/connection.h » ('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 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool success) override; 101 bool success) override;
102 102
103 // The connection used to send and receive events and status updates. 103 // The connection used to send and receive events and status updates.
104 scoped_ptr<Connection> connection_; 104 scoped_ptr<Connection> connection_;
105 105
106 // Used to encrypt and decrypt payloads sent and received over the 106 // Used to encrypt and decrypt payloads sent and received over the
107 // |connection_|. 107 // |connection_|.
108 scoped_ptr<SecureContext> secure_context_; 108 scoped_ptr<SecureContext> secure_context_;
109 109
110 // The registered observers of |this_| client. 110 // The registered observers of |this_| client.
111 ObserverList<ClientObserver> observers_; 111 base::ObserverList<ClientObserver> observers_;
112 112
113 // Queue of messages to send to the remote device. 113 // Queue of messages to send to the remote device.
114 std::deque<PendingMessage> queued_messages_; 114 std::deque<PendingMessage> queued_messages_;
115 115
116 // 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
117 // response. Null if there is no message currently in this state. 117 // response. Null if there is no message currently in this state.
118 scoped_ptr<PendingMessage> pending_message_; 118 scoped_ptr<PendingMessage> pending_message_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(Client); 120 DISALLOW_COPY_AND_ASSIGN(Client);
121 }; 121 };
122 122
123 } // namespace proximity_auth 123 } // namespace proximity_auth
124 124
125 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H 125 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_H
OLDNEW
« no previous file with comments | « components/policy/core/common/schema_registry.h ('k') | components/proximity_auth/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698