OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 void SetManifest(payments::mojom::PaymentAppManifestPtr manifest, | 36 void SetManifest(payments::mojom::PaymentAppManifestPtr manifest, |
37 const SetManifestCallback& callback) override; | 37 const SetManifestCallback& callback) override; |
38 void GetManifest(const GetManifestCallback& callback) override; | 38 void GetManifest(const GetManifestCallback& callback) override; |
39 void DeletePaymentInstrument( | 39 void DeletePaymentInstrument( |
40 const std::string& instrument_key, | 40 const std::string& instrument_key, |
41 const DeletePaymentInstrumentCallback& callback) override; | 41 const DeletePaymentInstrumentCallback& callback) override; |
42 void SetPaymentInstrument( | 42 void SetPaymentInstrument( |
43 const std::string& instrument_key, | 43 const std::string& instrument_key, |
44 payments::mojom::PaymentInstrumentPtr details, | 44 payments::mojom::PaymentInstrumentPtr details, |
45 const SetPaymentInstrumentCallback& callback) override; | 45 const SetPaymentInstrumentCallback& callback) override; |
| 46 void HasPaymentInstrument( |
| 47 const std::string& instrument_key, |
| 48 const HasPaymentInstrumentCallback& callback) override; |
46 void GetPaymentInstrument( | 49 void GetPaymentInstrument( |
47 const std::string& instrument_key, | 50 const std::string& instrument_key, |
48 const GetPaymentInstrumentCallback& callback) override; | 51 const GetPaymentInstrumentCallback& callback) override; |
49 | 52 |
50 // Called when an error is detected on binding_. | 53 // Called when an error is detected on binding_. |
51 void OnConnectionError(); | 54 void OnConnectionError(); |
52 | 55 |
53 // PaymentAppContextImpl owns PaymentManager | 56 // PaymentAppContextImpl owns PaymentManager |
54 PaymentAppContextImpl* payment_app_context_; | 57 PaymentAppContextImpl* payment_app_context_; |
55 | 58 |
56 GURL scope_; | 59 GURL scope_; |
57 mojo::Binding<payments::mojom::PaymentManager> binding_; | 60 mojo::Binding<payments::mojom::PaymentManager> binding_; |
58 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; | 61 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; |
59 DISALLOW_COPY_AND_ASSIGN(PaymentManager); | 62 DISALLOW_COPY_AND_ASSIGN(PaymentManager); |
60 }; | 63 }; |
61 | 64 |
62 } // namespace content | 65 } // namespace content |
63 | 66 |
64 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ | 67 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ |
OLD | NEW |