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

Side by Side Diff: components/autofill/content/browser/wallet/wallet_client_delegate.h

Issue 23537014: rAc: Get rid of dialog type in rAc, there is only one type left now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 class WalletClientDelegate { 26 class WalletClientDelegate {
27 public: 27 public:
28 // -------------------------------------- 28 // --------------------------------------
29 // Accessors called when making requests. 29 // Accessors called when making requests.
30 // -------------------------------------- 30 // --------------------------------------
31 31
32 // Returns the MetricLogger instance that should be used for logging Online 32 // Returns the MetricLogger instance that should be used for logging Online
33 // Wallet metrics. 33 // Wallet metrics.
34 virtual const AutofillMetrics& GetMetricLogger() const = 0; 34 virtual const AutofillMetrics& GetMetricLogger() const = 0;
35 35
36 // Returns the dialog type that the delegate corresponds to.
37 virtual DialogType GetDialogType() const = 0;
38
39 // Returns the serialized fingerprint data to be sent to the Risk server. 36 // Returns the serialized fingerprint data to be sent to the Risk server.
40 virtual std::string GetRiskData() const = 0; 37 virtual std::string GetRiskData() const = 0;
41 38
42 // Returns the cookie value used for authorization when making requests to 39 // Returns the cookie value used for authorization when making requests to
43 // Wallet. 40 // Wallet.
44 virtual std::string GetWalletCookieValue() const = 0; 41 virtual std::string GetWalletCookieValue() const = 0;
45 42
46 // Whether or not shipping address is required by the delegate. 43 // Whether or not shipping address is required by the delegate.
47 virtual bool IsShippingAddressRequired() const = 0; 44 virtual bool IsShippingAddressRequired() const = 0;
48 45
(...skipping 30 matching lines...) Expand all
79 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0; 76 virtual void OnWalletError(WalletClient::ErrorType error_type) = 0;
80 77
81 protected: 78 protected:
82 virtual ~WalletClientDelegate() {} 79 virtual ~WalletClientDelegate() {}
83 }; 80 };
84 81
85 } // namespace wallet 82 } // namespace wallet
86 } // namespace autofill 83 } // namespace autofill
87 84
88 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_ 85 #endif // COMPONENTS_AUTOFILL_BROWSER_WALLET_WALLET_CLIENT_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698