Index: content/browser/payments/payment_app_context_impl.h |
diff --git a/content/browser/payments/payment_app_context_impl.h b/content/browser/payments/payment_app_context_impl.h |
deleted file mode 100644 |
index 79a85a68327da578064acfbd98a5e4c91d736170..0000000000000000000000000000000000000000 |
--- a/content/browser/payments/payment_app_context_impl.h |
+++ /dev/null |
@@ -1,75 +0,0 @@ |
-// Copyright 2016 The Chromium Authors. All rights reserved. |
-// 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_IMPL_H_ |
-#define CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_IMPL_H_ |
- |
-#include <map> |
-#include <memory> |
- |
-#include "base/macros.h" |
-#include "base/memory/ref_counted.h" |
-#include "components/payments/payment_app.mojom.h" |
-#include "content/browser/payments/payment_app_database.h" |
-#include "content/common/content_export.h" |
-#include "content/public/browser/payment_app_context.h" |
- |
-namespace content { |
- |
-class PaymentAppManager; |
- |
-class CONTENT_EXPORT PaymentAppContextImpl |
- : NON_EXPORTED_BASE(public PaymentAppContext), |
- public base::RefCountedThreadSafe<PaymentAppContextImpl> { |
- public: |
- PaymentAppContextImpl(); |
- |
- // Init and Shutdown are for use on the UI thread when the |
- // StoragePartition is being setup and torn down. |
- void Init(scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); |
- |
- // Shutdown must be called before deleting this. Call on the UI thread. |
- void Shutdown(); |
- |
- // Create a PaymentAppManager that is owned by this. Call on the UI |
- // thread. |
- void CreateService( |
- mojo::InterfaceRequest<payments::mojom::PaymentAppManager> request); |
- |
- // Called by PaymentAppManager objects so that they can |
- // be deleted. Call on the IO thread. |
- void ServiceHadConnectionError(PaymentAppManager* service); |
- |
- PaymentAppDatabase* payment_app_database() const; |
- |
- void GetAllManifests(const GetAllManifestsCallback& callback) override; |
- |
- protected: |
- friend class base::RefCountedThreadSafe<PaymentAppContextImpl>; |
- friend class PaymentAppManagerTest; |
- virtual ~PaymentAppContextImpl(); |
- |
- private: |
- void CreatePaymentAppDatabaseOnIO( |
- scoped_refptr<ServiceWorkerContextWrapper> service_worker_context); |
- |
- void CreateServiceOnIOThread( |
- mojo::InterfaceRequest<payments::mojom::PaymentAppManager> request); |
- |
- void ShutdownOnIO(); |
- |
- // Only accessed on the IO thread. |
- std::unique_ptr<PaymentAppDatabase> payment_app_database_; |
- |
- // The services are owned by this. They're either deleted |
- // during ShutdownOnIO or when the channel is closed via |
- // ServiceHadConnectionError. Only accessed on the IO thread. |
- std::map<PaymentAppManager*, std::unique_ptr<PaymentAppManager>> services_; |
- |
- DISALLOW_COPY_AND_ASSIGN(PaymentAppContextImpl); |
-}; |
- |
-} // namespace content |
- |
-#endif // CONTENT_BROWSER_PAYMENTS_PAYMENT_APP_CONTEXT_IMPL_H_ |