OLD | NEW |
---|---|
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_OBSERVER_H | 5 #ifndef COMPONENTS_PROXIMITY_AUTH_MESSENGER_OBSERVER_H |
6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_OBSERVER_H | 6 #define COMPONENTS_PROXIMITY_AUTH_MESSENGER_OBSERVER_H |
7 | 7 |
8 #include <memory> | |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
11 | 11 |
Ilya Sherman
2016/04/20 22:08:57
nit: Unnecessary extra blank line
dcheng
2016/04/20 22:13:52
Done.
| |
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 Messenger. | 16 // An interface for observing events that happen on a Messenger. |
17 class MessengerObserver { | 17 class MessengerObserver { |
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){}; | 21 virtual void OnUnlockEventSent(bool success){}; |
(...skipping 10 matching lines...) Expand all Loading... | |
32 // |success| is true iff the request was made successfully. | 32 // |success| is true iff the request was made successfully. |
33 virtual void OnUnlockResponse(bool success){}; | 33 virtual void OnUnlockResponse(bool success){}; |
34 | 34 |
35 // Called when the underlying secure channel disconnects. | 35 // Called when the underlying secure channel disconnects. |
36 virtual void OnDisconnected(){}; | 36 virtual void OnDisconnected(){}; |
37 }; | 37 }; |
38 | 38 |
39 } // namespace proximity_auth | 39 } // namespace proximity_auth |
40 | 40 |
41 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_OBSERVER_H | 41 #endif // COMPONENTS_PROXIMITY_AUTH_MESSENGER_OBSERVER_H |
OLD | NEW |