Chromium Code Reviews| Index: content/browser/payments/payment_app_context_impl.h |
| diff --git a/content/browser/payments/payment_app_context.h b/content/browser/payments/payment_app_context_impl.h |
| similarity index 70% |
| rename from content/browser/payments/payment_app_context.h |
| rename to content/browser/payments/payment_app_context_impl.h |
| index 3572a8b892bd74ad80210fc5872f9013950e2545..f3af23a95a6415023f3934a7789b67998aecd295 100644 |
| --- a/content/browser/payments/payment_app_context.h |
| +++ b/content/browser/payments/payment_app_context_impl.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_H_ |
| -#define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_H_ |
| +#ifndef CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_IMPL_H_ |
| +#define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_IMPL_H_ |
| #include <map> |
| #include <memory> |
| @@ -12,16 +12,18 @@ |
| #include "base/memory/ref_counted.h" |
| #include "components/payments/payment_app.mojom.h" |
| #include "content/common/content_export.h" |
| +#include "content/public/browser/payment_app_context.h" |
| namespace content { |
| class PaymentAppManager; |
| class ServiceWorkerContextWrapper; |
| -class CONTENT_EXPORT PaymentAppContext |
| - : public base::RefCountedThreadSafe<PaymentAppContext> { |
| +class CONTENT_EXPORT PaymentAppContextImpl |
| + : NON_EXPORTED_BASE(public PaymentAppContext), |
| + public base::RefCountedThreadSafe<PaymentAppContextImpl> { |
|
please use gerrit instead
2016/12/14 16:50:05
The pure interface PaymentAppContext should be lis
zino
2016/12/14 17:20:19
Done.
|
| public: |
| - explicit PaymentAppContext( |
| + explicit PaymentAppContextImpl( |
| scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); |
| // Shutdown must be called before deleting this. Call on the UI thread. |
| @@ -38,10 +40,12 @@ class CONTENT_EXPORT PaymentAppContext |
| ServiceWorkerContextWrapper* service_worker_context() const; |
|
please use gerrit instead
2016/12/14 16:50:05
// PaymentAppContext implementation:
zino
2016/12/14 17:20:19
Done.
|
| + void GetAllManifests(const GetAllManifestsCallback& callback) override; |
| + |
| protected: |
| - friend class base::RefCountedThreadSafe<PaymentAppContext>; |
| + friend class base::RefCountedThreadSafe<PaymentAppContextImpl>; |
| friend class PaymentAppManagerTest; |
| - virtual ~PaymentAppContext(); |
| + virtual ~PaymentAppContextImpl(); |
|
please use gerrit instead
2016/12/14 16:50:05
override instead of virtual
Can you make it priva
zino
2016/12/14 17:20:19
Done.
|
| private: |
| void CreateServiceOnIOThread( |
| @@ -56,9 +60,9 @@ class CONTENT_EXPORT PaymentAppContext |
| // ServiceHadConnectionError. Only accessed on the IO thread. |
| std::map<PaymentAppManager*, std::unique_ptr<PaymentAppManager>> services_; |
| - DISALLOW_COPY_AND_ASSIGN(PaymentAppContext); |
| + DISALLOW_COPY_AND_ASSIGN(PaymentAppContextImpl); |
| }; |
| } // namespace content |
| -#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_H_ |
| +#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_IMPL_H_ |