Rename GetIconID to GetIconId
[chromium-blink-merge.git] / components / proximity_auth / client_observer.h
blobb883a6bdd4bb814e8a7fe973011a707fb3bc28e5
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H
6 #define COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
12 namespace proximity_auth {
14 struct RemoteStatusUpdate;
16 // An interface for observing events that happen on a Client.
17 class ClientObserver {
18 public:
19 // Called when sending an "Easy Unlock used" local event message completes.
20 // |success| is true iff the event was sent successfully.
21 virtual void OnUnlockEventSent(bool success){};
23 // Called when a RemoteStatusUpdate is received.
24 virtual void OnRemoteStatusUpdate(const RemoteStatusUpdate& status_update){};
26 // Called when a response to a 'decrypt_request' is received, with the
27 // |decrypted_bytes| that were returned by the remote device. A null pointer
28 // indicates failure.
29 virtual void OnDecryptResponse(scoped_ptr<std::string> decrypted_bytes){};
31 // Called when a response to a 'unlock_request' is received.
32 // |success| is true iff the request was made successfully.
33 virtual void OnUnlockResponse(bool success){};
35 // Called when the underlying secure channel disconnects.
36 virtual void OnDisconnected(){};
39 } // namespace proximity_auth
41 #endif // COMPONENTS_PROXIMITY_AUTH_CLIENT_OBSERVER_H