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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/wallet/encryption_escrow_client_observer.h
diff --git a/chrome/browser/autofill/wallet/encryption_escrow_client_observer.h b/chrome/browser/autofill/wallet/encryption_escrow_client_observer.h
deleted file mode 100644
index 4b2eae3fb17665889a1bba92c67e4bf3a20ac365..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/wallet/encryption_escrow_client_observer.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
-#define CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_
-
-#include <string>
-
-namespace autofill {
-namespace wallet {
-
-// EncryptionEscrowClientObserver is to be implemented by any classes making
-// calls with EncryptionEscrowClient. The appropriate callback method will be
-// called on EncryptionEscrowClientObserver with the response from the Online
-// Wallet encryption and escrow backend.
-class EncryptionEscrowClientObserver {
- public:
- // Called when an EncryptOneTimePad request finishes successfully.
- // |encrypted_one_time_pad| and |session_material| must be used when getting a
- // FullWallet.
- virtual void OnDidEncryptOneTimePad(const std::string& encrypted_one_time_pad,
- const std::string& session_material) = 0;
-
- // Called when an EscrowCardVerificationNumber request finishes
- // successfully. |escrow_handle| must be used when authenticating an
- // instrument.
- virtual void OnDidEscrowCardVerificationNumber(
- const std::string& escrow_handle) = 0;
-
- // Called when an EscrowInstrumentInformation request finishes successfully.
- // |escrow_handle| must be used when saving a new instrument.
- virtual void OnDidEscrowInstrumentInformation(
- const std::string& escrow_handle) = 0;
-
- // Called when a request fails due to a network error or if the response was
- // invalid.
- virtual void OnNetworkError(int response_code) = 0;
-
- // Called when a request fails due to a malformed response.
- virtual void OnMalformedResponse() = 0;
-
- protected:
- virtual ~EncryptionEscrowClientObserver() {}
-};
-
-} // namespace wallet
-} // namespace autofill
-
-#endif // CHROME_BROWSER_AUTOFILL_WALLET_ENCRYPTION_ESCROW_CLIENT_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698