| Index: content/browser/permissions/permission_service_impl.h
|
| diff --git a/content/browser/permissions/permission_service_impl.h b/content/browser/permissions/permission_service_impl.h
|
| index cfce9155afdf1bf9a3b0ee39cca9d92df2aa0e8c..ea0ccdab5ec9980f351aa7e1d9df9df563d0678c 100644
|
| --- a/content/browser/permissions/permission_service_impl.h
|
| +++ b/content/browser/permissions/permission_service_impl.h
|
| @@ -10,6 +10,7 @@
|
| #include "base/macros.h"
|
| #include "base/memory/weak_ptr.h"
|
| #include "content/browser/permissions/permission_service_context.h"
|
| +#include "content/common/content_export.h"
|
| #include "third_party/WebKit/public/platform/modules/permissions/permission.mojom.h"
|
| #include "url/origin.h"
|
|
|
| @@ -24,25 +25,19 @@ enum class PermissionType;
|
| // to have some information about the current context. That enables the service
|
| // to know whether it can show UI and have knowledge of the associated
|
| // WebContents for example.
|
| -class PermissionServiceImpl : public blink::mojom::PermissionService {
|
| +class CONTENT_EXPORT PermissionServiceImpl
|
| + : public blink::mojom::PermissionService {
|
| public:
|
| PermissionServiceImpl(PermissionServiceContext* context);
|
| ~PermissionServiceImpl() override;
|
|
|
| private:
|
| + friend class PermissionServiceImplTest;
|
| +
|
| using PermissionStatusCallback =
|
| base::Callback<void(blink::mojom::PermissionStatus)>;
|
|
|
| - struct PendingRequest {
|
| - PendingRequest(const RequestPermissionsCallback& callback,
|
| - int request_count);
|
| - ~PendingRequest();
|
| -
|
| - // Request ID received from the PermissionManager.
|
| - int id;
|
| - RequestPermissionsCallback callback;
|
| - int request_count;
|
| - };
|
| + class PendingRequest;
|
| using RequestsMap = IDMap<std::unique_ptr<PendingRequest>>;
|
|
|
| // blink::mojom::PermissionService.
|
|
|