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

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

Issue 1264703003: Implement debugging local unlock keys in chrome://proximity-auth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + fixes Created 5 years, 4 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_IMPL_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_IMPL_H
6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_IMPL_H 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_IMPL_H
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 ~ClientImpl() override; 35 ~ClientImpl() override;
36 36
37 // Client: 37 // Client:
38 void AddObserver(ClientObserver* observer) override; 38 void AddObserver(ClientObserver* observer) override;
39 void RemoveObserver(ClientObserver* observer) override; 39 void RemoveObserver(ClientObserver* observer) override;
40 bool SupportsSignIn() const override; 40 bool SupportsSignIn() const override;
41 void DispatchUnlockEvent() override; 41 void DispatchUnlockEvent() override;
42 void RequestDecryption(const std::string& challenge) override; 42 void RequestDecryption(const std::string& challenge) override;
43 void RequestUnlock() override; 43 void RequestUnlock() override;
44 44
45 protected:
46 // Exposed for testing. 45 // Exposed for testing.
47 Connection* connection() { return connection_.get(); } 46 Connection* connection() { return connection_.get(); }
47
48 protected:
48 SecureContext* secure_context() { return secure_context_.get(); } 49 SecureContext* secure_context() { return secure_context_.get(); }
49 50
50 private: 51 private:
51 // Internal data structure to represent a pending message that either hasn't 52 // Internal data structure to represent a pending message that either hasn't
52 // been sent yet or is waiting for a response from the remote device. 53 // been sent yet or is waiting for a response from the remote device.
53 struct PendingMessage { 54 struct PendingMessage {
54 PendingMessage(); 55 PendingMessage();
55 PendingMessage(const base::DictionaryValue& message); 56 PendingMessage(const base::DictionaryValue& message);
56 ~PendingMessage(); 57 ~PendingMessage();
57 58
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 scoped_ptr<PendingMessage> pending_message_; 113 scoped_ptr<PendingMessage> pending_message_;
113 114
114 base::WeakPtrFactory<ClientImpl> weak_ptr_factory_; 115 base::WeakPtrFactory<ClientImpl> weak_ptr_factory_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(ClientImpl); 117 DISALLOW_COPY_AND_ASSIGN(ClientImpl);
117 }; 118 };
118 119
119 } // namespace proximity_auth 120 } // namespace proximity_auth
120 121
121 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_IMPL_H 122 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_IMPL_H
OLDNEW
« no previous file with comments | « components/proximity_auth/bluetooth_connection_finder.cc ('k') | components/proximity_auth/client_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698