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

Side by Side Diff: components/proximity_auth/client_observer.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
« no previous file with comments | « components/proximity_auth/client_impl.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_OBSERVER_H 5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H
6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H 6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace proximity_auth { 12 namespace proximity_auth {
13 13
14 struct RemoteStatusUpdate; 14 struct RemoteStatusUpdate;
15 15
16 // An interface for observing events that happen on a Client. 16 // An interface for observing events that happen on a Client.
17 class ClientObserver { 17 class ClientObserver {
18 public: 18 public:
19 // Called when sending an "Easy Unlock used" local event message completes. 19 // Called when sending an "Easy Unlock used" local event message completes.
20 // |success| is true iff the event was sent successfully. 20 // |success| is true iff the event was sent successfully.
21 virtual void OnUnlockEventSent(bool success) = 0; 21 virtual void OnUnlockEventSent(bool success){};
22 22
23 // Called when a RemoteStatusUpdate is received. 23 // Called when a RemoteStatusUpdate is received.
24 virtual void OnRemoteStatusUpdate( 24 virtual void OnRemoteStatusUpdate(const RemoteStatusUpdate& status_update){};
25 const RemoteStatusUpdate& status_update) = 0;
26 25
27 // Called when a response to a 'decrypt_request' is received, with the 26 // Called when a response to a 'decrypt_request' is received, with the
28 // |decrypted_bytes| that were returned by the remote device. A null pointer 27 // |decrypted_bytes| that were returned by the remote device. A null pointer
29 // indicates failure. 28 // indicates failure.
30 virtual void OnDecryptResponse(scoped_ptr<std::string> decrypted_bytes) = 0; 29 virtual void OnDecryptResponse(scoped_ptr<std::string> decrypted_bytes){};
31 30
32 // Called when a response to a 'unlock_request' is received. 31 // Called when a response to a 'unlock_request' is received.
33 // |success| is true iff the request was made successfully. 32 // |success| is true iff the request was made successfully.
34 virtual void OnUnlockResponse(bool success) = 0; 33 virtual void OnUnlockResponse(bool success){};
35 34
36 // Called when the underlying secure channel disconnects. 35 // Called when the underlying secure channel disconnects.
37 virtual void OnDisconnected() = 0; 36 virtual void OnDisconnected(){};
38 }; 37 };
39 38
40 } // namespace proximity_auth 39 } // namespace proximity_auth
41 40
42 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H 41 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H
OLDNEW
« no previous file with comments | « components/proximity_auth/client_impl.h ('k') | components/proximity_auth/connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698