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

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

Issue 2790013002: PaymentHandler: Implement set/get methods in PaymentInstruments (blink) (Closed)
Patch Set: blink 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 17 matching lines...) Expand all
28 ~PaymentManager() override; 28 ~PaymentManager() override;
29 29
30 private: 30 private:
31 friend class PaymentAppContentUnitTestBase; 31 friend class PaymentAppContentUnitTestBase;
32 32
33 // payments::mojom::PaymentManager methods: 33 // payments::mojom::PaymentManager methods:
34 void Init(const std::string& scope) override; 34 void Init(const std::string& scope) override;
35 void SetManifest(payments::mojom::PaymentAppManifestPtr manifest, 35 void SetManifest(payments::mojom::PaymentAppManifestPtr manifest,
36 const SetManifestCallback& callback) override; 36 const SetManifestCallback& callback) override;
37 void GetManifest(const GetManifestCallback& callback) override; 37 void GetManifest(const GetManifestCallback& callback) override;
38 void SetPaymentInstrument(
39 const std::string& instrumentKey,
40 payments::mojom::PaymentInstrumentPtr details,
41 const SetPaymentInstrumentCallback& callback) override;
42 void GetPaymentInstrument(
43 const std::string& instrumentKey,
44 const GetPaymentInstrumentCallback& callback) override;
38 45
39 // Called when an error is detected on binding_. 46 // Called when an error is detected on binding_.
40 void OnConnectionError(); 47 void OnConnectionError();
41 48
42 // PaymentAppContextImpl owns PaymentManager 49 // PaymentAppContextImpl owns PaymentManager
43 PaymentAppContextImpl* payment_app_context_; 50 PaymentAppContextImpl* payment_app_context_;
44 51
45 GURL scope_; 52 GURL scope_;
46 mojo::Binding<payments::mojom::PaymentManager> binding_; 53 mojo::Binding<payments::mojom::PaymentManager> binding_;
47 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_; 54 base::WeakPtrFactory<PaymentManager> weak_ptr_factory_;
48 DISALLOW_COPY_AND_ASSIGN(PaymentManager); 55 DISALLOW_COPY_AND_ASSIGN(PaymentManager);
49 }; 56 };
50 57
51 } // namespace content 58 } // namespace content
52 59
53 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_ 60 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_MANAGER_H_
OLDNEW
« no previous file with comments | « components/payments/mojom/payment_app.mojom ('k') | content/browser/payments/payment_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698