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

Unified Diff: content/browser/permissions/permission_service_impl.h

Issue 2874053003: Add checks for Feature Policy to the mojo Permission Service (Closed)
Patch Set: Add checks for Feature Policy to the mojo Permission Service Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
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 9d8430d260715f1eb5c8181b9ce42a8d5ae5c9c7..bb7023a80efe3501f929cc350b2e9cb3148b5552 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.
« no previous file with comments | « content/browser/permissions/permission_service_context.h ('k') | content/browser/permissions/permission_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698