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

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

Issue 2844673002: PaymentHandler: Implement PaymentInstruments.has(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.has(). Created 3 years, 8 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 25 matching lines...) Expand all
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_
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