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

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

Issue 2858773002: Revert of PaymentHandler: Implement PaymentInstruments.keys(). (Closed)
Patch Set: 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;
50 void SetPaymentInstrument( 42 void SetPaymentInstrument(
51 const std::string& instrument_key, 43 const std::string& instrument_key,
52 payments::mojom::PaymentInstrumentPtr details, 44 payments::mojom::PaymentInstrumentPtr details,
53 const SetPaymentInstrumentCallback& callback) override; 45 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;
54 52
55 // Called when an error is detected on binding_. 53 // Called when an error is detected on binding_.
56 void OnConnectionError(); 54 void OnConnectionError();
57 55
58 // PaymentAppContextImpl owns PaymentManager 56 // PaymentAppContextImpl owns PaymentManager
59 PaymentAppContextImpl* payment_app_context_; 57 PaymentAppContextImpl* payment_app_context_;
60 58
61 GURL scope_; 59 GURL scope_;
62 mojo::Binding<payments::mojom::PaymentManager> binding_; 60 mojo::Binding<payments::mojom::PaymentManager> binding_;
63 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; 61 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_;
64 DISALLOW_COPY_AND_ASSIGN(PaymentManager); 62 DISALLOW_COPY_AND_ASSIGN(PaymentManager);
65 }; 63 };
66 64
67 } // namespace content 65 } // namespace content
68 66
69 #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