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

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

Issue 2845433003: [EasyUnlock] Update ProximityMonitor to only check for RSSI proximity. (Closed)
Patch Set: fixes Created 3 years, 7 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/proximity_auth/messenger.h ('k') | components/proximity_auth/messenger_impl.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 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_MESSENGER_IMPL_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H
6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H 6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 26 matching lines...) Expand all
37 ~MessengerImpl() override; 37 ~MessengerImpl() override;
38 38
39 // Messenger: 39 // Messenger:
40 void AddObserver(MessengerObserver* observer) override; 40 void AddObserver(MessengerObserver* observer) override;
41 void RemoveObserver(MessengerObserver* observer) override; 41 void RemoveObserver(MessengerObserver* observer) override;
42 bool SupportsSignIn() const override; 42 bool SupportsSignIn() const override;
43 void DispatchUnlockEvent() override; 43 void DispatchUnlockEvent() override;
44 void RequestDecryption(const std::string& challenge) override; 44 void RequestDecryption(const std::string& challenge) override;
45 void RequestUnlock() override; 45 void RequestUnlock() override;
46 cryptauth::SecureContext* GetSecureContext() const override; 46 cryptauth::SecureContext* GetSecureContext() const override;
47 cryptauth::Connection* GetConnection() const override;
47 48
48 // Exposed for testing. 49 // Exposed for testing.
49 cryptauth::Connection* connection() { return connection_.get(); } 50 cryptauth::Connection* connection() { return connection_.get(); }
50 51
51 private: 52 private:
52 // Internal data structure to represent a pending message that either hasn't 53 // Internal data structure to represent a pending message that either hasn't
53 // been sent yet or is waiting for a response from the remote device. 54 // been sent yet or is waiting for a response from the remote device.
54 struct PendingMessage { 55 struct PendingMessage {
55 PendingMessage(); 56 PendingMessage();
56 PendingMessage(const base::DictionaryValue& message); 57 PendingMessage(const base::DictionaryValue& message);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 std::unique_ptr<PendingMessage> pending_message_; 120 std::unique_ptr<PendingMessage> pending_message_;
120 121
121 base::WeakPtrFactory<MessengerImpl> weak_ptr_factory_; 122 base::WeakPtrFactory<MessengerImpl> weak_ptr_factory_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(MessengerImpl); 124 DISALLOW_COPY_AND_ASSIGN(MessengerImpl);
124 }; 125 };
125 126
126 } // namespace proximity_auth 127 } // namespace proximity_auth
127 128
128 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H 129 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_IMPL_H
OLDNEW
« no previous file with comments | « components/proximity_auth/messenger.h ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698