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

Side by Side Diff: chrome/browser/autofill/wallet/encryption_escrow_client_observer.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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.
4
5 #ifndef CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
6 #define CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
7
8 #include <string>
9
10 namespace autofill {
11 namespace wallet {
12
13 // EncryptionEscrowClientObserver is to be implemented by any classes making
14 // calls with EncryptionEscrowClient. The appropriate callback method will be
15 // called on EncryptionEscrowClientObserver with the response from the Online
16 // Wallet encryption and escrow backend.
17 class EncryptionEscrowClientObserver {
18 public:
19 // Called when an EncryptOneTimePad request finishes successfully.
20 // |encrypted_one_time_pad| and |session_material| must be used when getting a
21 // FullWallet.
22 virtual void OnDidEncryptOneTimePad(const std::string& encrypted_one_time_pad,
23 const std::string& session_material) = 0;
24
25 // Called when an EscrowCardVerificationNumber request finishes
26 // successfully. |escrow_handle| must be used when authenticating an
27 // instrument.
28 virtual void OnDidEscrowCardVerificationNumber(
29 const std::string& escrow_handle) = 0;
30
31 // Called when an EscrowInstrumentInformation request finishes successfully.
32 // |escrow_handle| must be used when saving a new instrument.
33 virtual void OnDidEscrowInstrumentInformation(
34 const std::string& escrow_handle) = 0;
35
36 // Called when a request fails due to a network error or if the response was
37 // invalid.
38 virtual void OnNetworkError(int response_code) = 0;
39
40 // Called when a request fails due to a malformed response.
41 virtual void OnMalformedResponse() = 0;
42
43 protected:
44 virtual ~EncryptionEscrowClientObserver() {}
45 };
46
47 } // namespace wallet
48 } // namespace autofill
49
50 #endif // CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698