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

Side by Side Diff: content/browser/payments/payment_manager.h

Issue 2856973002: PaymentHandler: Implement PaymentInstruments.clear(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.clear(). Created 3 years, 7 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const GetPaymentInstrumentCallback& callback) override; 44 const GetPaymentInstrumentCallback& callback) override;
45 void KeysOfPaymentInstruments( 45 void KeysOfPaymentInstruments(
46 const KeysOfPaymentInstrumentsCallback& callback) override; 46 const KeysOfPaymentInstrumentsCallback& callback) override;
47 void HasPaymentInstrument( 47 void HasPaymentInstrument(
48 const std::string& instrument_key, 48 const std::string& instrument_key,
49 const HasPaymentInstrumentCallback& callback) override; 49 const HasPaymentInstrumentCallback& callback) override;
50 void SetPaymentInstrument( 50 void SetPaymentInstrument(
51 const std::string& instrument_key, 51 const std::string& instrument_key,
52 payments::mojom::PaymentInstrumentPtr details, 52 payments::mojom::PaymentInstrumentPtr details,
53 const SetPaymentInstrumentCallback& callback) override; 53 const SetPaymentInstrumentCallback& callback) override;
54 void ClearPaymentInstruments(
55 const ClearPaymentInstrumentsCallback& callback) override;
54 56
55 // Called when an error is detected on binding_. 57 // Called when an error is detected on binding_.
56 void OnConnectionError(); 58 void OnConnectionError();
57 59
58 // PaymentAppContextImpl owns PaymentManager 60 // PaymentAppContextImpl owns PaymentManager
59 PaymentAppContextImpl* payment_app_context_; 61 PaymentAppContextImpl* payment_app_context_;
60 62
61 GURL scope_; 63 GURL scope_;
62 mojo::Binding<payments::mojom::PaymentManager> binding_; 64 mojo::Binding<payments::mojom::PaymentManager> binding_;
63 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; 65 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_;
64 DISALLOW_COPY_AND_ASSIGN(PaymentManager); 66 DISALLOW_COPY_AND_ASSIGN(PaymentManager);
65 }; 67 };
66 68
67 } // namespace content 69 } // namespace content
68 70
69 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 71 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/payments/payment_app_database.cc ('k') | content/browser/payments/payment_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698