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

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

Issue 2850203002: PaymentHandler: Implement PaymentInstruments.keys(). (Closed)
Patch Set: PaymentHandler: Implement PaymentInstruments.Keys(). 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 21 matching lines...) Expand all
32 friend class PaymentManagerTest; 32 friend class PaymentManagerTest;
33 33
34 // payments::mojom::PaymentManager methods: 34 // payments::mojom::PaymentManager methods:
35 void Init(const std::string& scope) override; 35 void Init(const std::string& scope) override;
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 GetPaymentInstrument(
43 const std::string& instrument_key,
44 const GetPaymentInstrumentCallback& callback) override;
45 void KeysOfPaymentInstruments(
46 const KeysOfPaymentInstrumentsCallback& callback) override;
47 void HasPaymentInstrument(
48 const std::string& instrument_key,
49 const HasPaymentInstrumentCallback& callback) override;
42 void SetPaymentInstrument( 50 void SetPaymentInstrument(
43 const std::string& instrument_key, 51 const std::string& instrument_key,
44 payments::mojom::PaymentInstrumentPtr details, 52 payments::mojom::PaymentInstrumentPtr details,
45 const SetPaymentInstrumentCallback& callback) override; 53 const SetPaymentInstrumentCallback& callback) override;
46 void HasPaymentInstrument(
47 const std::string& instrument_key,
48 const HasPaymentInstrumentCallback& callback) override;
49 void GetPaymentInstrument(
50 const std::string& instrument_key,
51 const GetPaymentInstrumentCallback& callback) override;
52 54
53 // Called when an error is detected on binding_. 55 // Called when an error is detected on binding_.
54 void OnConnectionError(); 56 void OnConnectionError();
55 57
56 // PaymentAppContextImpl owns PaymentManager 58 // PaymentAppContextImpl owns PaymentManager
57 PaymentAppContextImpl* payment_app_context_; 59 PaymentAppContextImpl* payment_app_context_;
58 60
59 GURL scope_; 61 GURL scope_;
60 mojo::Binding<payments::mojom::PaymentManager> binding_; 62 mojo::Binding<payments::mojom::PaymentManager> binding_;
61 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; 63 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_;
62 DISALLOW_COPY_AND_ASSIGN(PaymentManager); 64 DISALLOW_COPY_AND_ASSIGN(PaymentManager);
63 }; 65 };
64 66
65 } // namespace content 67 } // namespace content
66 68
67 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 69 #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