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

Side by Side Diff: components/autofill/content/browser/autocheckout_request_manager.h

Issue 17970003: New encryption/escrow endpoints for Wallet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleting old escrow unit tests Created 7 years, 5 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 6 #define COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
7 7
8 #include "base/supports_user_data.h" 8 #include "base/supports_user_data.h"
9 #include "components/autofill/content/browser/wallet/wallet_client.h" 9 #include "components/autofill/content/browser/wallet/wallet_client.h"
10 #include "components/autofill/content/browser/wallet/wallet_client_delegate.h" 10 #include "components/autofill/content/browser/wallet/wallet_client_delegate.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // wallet::WalletClientDelegate: 50 // wallet::WalletClientDelegate:
51 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE; 51 virtual const AutofillMetrics& GetMetricLogger() const OVERRIDE;
52 virtual DialogType GetDialogType() const OVERRIDE; 52 virtual DialogType GetDialogType() const OVERRIDE;
53 virtual std::string GetRiskData() const OVERRIDE; 53 virtual std::string GetRiskData() const OVERRIDE;
54 virtual void OnDidAcceptLegalDocuments() OVERRIDE; 54 virtual void OnDidAcceptLegalDocuments() OVERRIDE;
55 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE; 55 virtual void OnDidAuthenticateInstrument(bool success) OVERRIDE;
56 virtual void OnDidGetFullWallet( 56 virtual void OnDidGetFullWallet(
57 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE; 57 scoped_ptr<wallet::FullWallet> full_wallet) OVERRIDE;
58 virtual void OnDidGetWalletItems( 58 virtual void OnDidGetWalletItems(
59 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE; 59 scoped_ptr<wallet::WalletItems> wallet_items) OVERRIDE;
60 virtual void OnDidSaveAddress( 60 virtual void OnDidSaveToWallet(
61 const std::string& address_id,
62 const std::vector<wallet::RequiredAction>& required_actions,
63 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
64 virtual void OnDidSaveInstrument(
65 const std::string& instrument_id,
66 const std::vector<wallet::RequiredAction>& required_actions,
67 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
68 virtual void OnDidSaveInstrumentAndAddress(
69 const std::string& instrument_id, 61 const std::string& instrument_id,
70 const std::string& address_id, 62 const std::string& address_id,
71 const std::vector<wallet::RequiredAction>& required_actions, 63 const std::vector<wallet::RequiredAction>& required_actions,
72 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE; 64 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
73 virtual void OnDidUpdateAddress(
74 const std::string& address_id,
75 const std::vector<wallet::RequiredAction>& required_actions,
76 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
77 virtual void OnDidUpdateInstrument(
78 const std::string& instrument_id,
79 const std::vector<wallet::RequiredAction>& required_actions,
80 const std::vector<wallet::FormFieldError>& form_field_errors) OVERRIDE;
81 virtual void OnWalletError( 65 virtual void OnWalletError(
82 wallet::WalletClient::ErrorType error_type) OVERRIDE; 66 wallet::WalletClient::ErrorType error_type) OVERRIDE;
83 67
84 private: 68 private:
85 // |request_context_getter| is passed in to construct |wallet_client_|. 69 // |request_context_getter| is passed in to construct |wallet_client_|.
86 AutocheckoutRequestManager( 70 AutocheckoutRequestManager(
87 net::URLRequestContextGetter* request_context_getter); 71 net::URLRequestContextGetter* request_context_getter);
88 72
89 // Logs various UMA metrics. 73 // Logs various UMA metrics.
90 AutofillMetrics metric_logger_; 74 AutofillMetrics metric_logger_;
91 75
92 // Makes requests to Online Wallet. The only request this class is configured 76 // Makes requests to Online Wallet. The only request this class is configured
93 // to make is SendAutocheckoutStatus. 77 // to make is SendAutocheckoutStatus.
94 wallet::WalletClient wallet_client_; 78 wallet::WalletClient wallet_client_;
95 79
96 DISALLOW_COPY_AND_ASSIGN(AutocheckoutRequestManager); 80 DISALLOW_COPY_AND_ASSIGN(AutocheckoutRequestManager);
97 }; 81 };
98 82
99 } // namespace autofill 83 } // namespace autofill
100 84
101 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_ 85 #endif // COMPONENTS_AUTOFILL_CONTENT_BROWSER_AUTOCHECKOUT_REQUEST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698