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

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

Issue 2844463002: PaymentHandler: Implement PaymentInstruments.delete(). (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 18 matching lines...) Expand all
29 29
30 private: 30 private:
31 friend class PaymentAppContentUnitTestBase; 31 friend class PaymentAppContentUnitTestBase;
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(
40 const std::string& instrumentKey,
please use gerrit instead 2017/04/25 15:21:40 hacker_case
zino 2017/04/25 21:48:51 Done.
41 const DeletePaymentInstrumentCallback& callback) override;
39 void SetPaymentInstrument( 42 void SetPaymentInstrument(
40 const std::string& instrumentKey, 43 const std::string& instrumentKey,
41 payments::mojom::PaymentInstrumentPtr details, 44 payments::mojom::PaymentInstrumentPtr details,
42 const SetPaymentInstrumentCallback& callback) override; 45 const SetPaymentInstrumentCallback& callback) override;
43 void GetPaymentInstrument( 46 void GetPaymentInstrument(
44 const std::string& instrumentKey, 47 const std::string& instrumentKey,
45 const GetPaymentInstrumentCallback& callback) override; 48 const GetPaymentInstrumentCallback& callback) override;
46 49
47 // Called when an error is detected on binding_. 50 // Called when an error is detected on binding_.
48 void OnConnectionError(); 51 void OnConnectionError();
49 52
50 // PaymentAppContextImpl owns PaymentManager 53 // PaymentAppContextImpl owns PaymentManager
51 PaymentAppContextImpl* payment_app_context_; 54 PaymentAppContextImpl* payment_app_context_;
52 55
53 GURL scope_; 56 GURL scope_;
54 mojo::Binding<payments::mojom::PaymentManager> binding_; 57 mojo::Binding<payments::mojom::PaymentManager> binding_;
55 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; 58 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_;
56 DISALLOW_COPY_AND_ASSIGN(PaymentManager); 59 DISALLOW_COPY_AND_ASSIGN(PaymentManager);
57 }; 60 };
58 61
59 } // namespace content 62 } // namespace content
60 63
61 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 64 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698