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

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

Issue 2718013004: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) (Closed)
Patch Set: PaymentApp: Implement respondWith() in PaymentRequestEvent. (content side) Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_APP_PROVIDER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ 6 #define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
please use gerrit instead 2017/03/21 16:09:41 Not used.
zino 2017/03/22 18:04:44 Done.
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "components/payments/content/payment_app.mojom.h" 12 #include "components/payments/content/payment_app.mojom.h"
please use gerrit instead 2017/03/21 16:09:41 Used only in overriding PaymentAppProvider interfa
zino 2017/03/22 18:04:44 Done.
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/payment_app_provider.h" 14 #include "content/public/browser/payment_app_provider.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class BrowserContext; 18 class BrowserContext;
please use gerrit instead 2017/03/21 16:09:41 Used only in overriding PaymentAppProvider interfa
zino 2017/03/22 18:04:44 Done.
19 19
20 class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider { 20 class CONTENT_EXPORT PaymentAppProviderImpl : public PaymentAppProvider {
21 public: 21 public:
22 static PaymentAppProviderImpl* GetInstance(); 22 static PaymentAppProviderImpl* GetInstance();
23 23
24 // PaymentAppProvider implementation: 24 // PaymentAppProvider implementation:
25 // Should be accessed only on the UI thread. 25 // Should be accessed only on the UI thread.
26 void GetAllManifests(BrowserContext* browser_context, 26 void GetAllManifests(BrowserContext* browser_context,
27 const GetAllManifestsCallback& callback) override; 27 const GetAllManifestsCallback& callback) override;
28 void InvokePaymentApp( 28 void InvokePaymentApp(BrowserContext* browser_context,
29 BrowserContext* browser_context, 29 int64_t registration_id,
30 int64_t registration_id, 30 payments::mojom::PaymentAppRequestPtr app_request,
31 payments::mojom::PaymentAppRequestPtr app_request) override; 31 const InvokePaymentAppCallback& callback) override;
32 32
33 private: 33 private:
34 PaymentAppProviderImpl(); 34 PaymentAppProviderImpl();
35 ~PaymentAppProviderImpl() override; 35 ~PaymentAppProviderImpl() override;
36 36
37 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>; 37 friend struct base::DefaultSingletonTraits<PaymentAppProviderImpl>;
38 38
39 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl); 39 DISALLOW_COPY_AND_ASSIGN(PaymentAppProviderImpl);
40 }; 40 };
41 41
42 } // namespace content 42 } // namespace content
43 43
44 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_ 44 #endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698