Index: content/browser/permissions/permission_pending_multiple_request.h |
diff --git a/content/browser/permissions/permission_pending_multiple_request.h b/content/browser/permissions/permission_pending_multiple_request.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2fbe06c5c2837091b5bc7de2813aec3169f0e4eb |
--- /dev/null |
+++ b/content/browser/permissions/permission_pending_multiple_request.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2015 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_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ |
+#define CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ |
+ |
+#include "base/callback_forward.h" |
+#include "base/macros.h" |
+#include "content/browser/permissions/permission_pending_request.h" |
+#include "content/common/permission_service.mojom.h" |
+#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
+#include "url/gurl.h" |
+ |
+namespace content { |
+ |
+enum class PermissionType; |
+ |
+class PermissionPendingMultipleRequest : public PermissionPendingRequest { |
+ public: |
+ using PermissionsStatusCallback = |
+ mojo::Callback<void(mojo::Array<PermissionStatus>)>; |
+ |
+ PermissionPendingMultipleRequest(PermissionsStatusCallback callback, |
+ int request_count); |
+ ~PermissionPendingMultipleRequest() override; |
+ |
+ void Cancel(PermissionManager* permission_manager, |
+ RenderFrameHost* context, |
+ int request_id) override; |
+ |
+ PermissionsStatusCallback callback; |
mlamouri (slow - plz ping)
2015/08/18 13:37:15
This is not allowed. You must have the callback pr
Lalit Maganti
2015/08/20 14:23:30
The reason I did this was because I remembered tha
|
+ |
+ private: |
+ int request_count; |
mlamouri (slow - plz ping)
2015/08/18 13:37:15
style: request_count_
Lalit Maganti
2015/08/20 14:23:30
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(PermissionPendingMultipleRequest); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ |