OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ | |
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ | |
7 | |
8 #include "base/callback_forward.h" | |
9 #include "base/macros.h" | |
10 #include "content/browser/permissions/permission_pending_request.h" | |
11 #include "content/common/permission_service.mojom.h" | |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
13 #include "url/gurl.h" | |
14 | |
15 namespace content { | |
16 | |
17 enum class PermissionType; | |
18 | |
19 class PermissionPendingMultipleRequest : public PermissionPendingRequest { | |
20 public: | |
21 using PermissionsStatusCallback = | |
22 mojo::Callback<void(mojo::Array<PermissionStatus>)>; | |
23 | |
24 PermissionPendingMultipleRequest(PermissionsStatusCallback callback, | |
25 int request_count); | |
26 ~PermissionPendingMultipleRequest() override; | |
27 | |
28 void Cancel(PermissionManager* permission_manager, | |
29 RenderFrameHost* context, | |
30 int request_id) override; | |
31 | |
32 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
| |
33 | |
34 private: | |
35 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.
| |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(PermissionPendingMultipleRequest); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_ | |
OLD | NEW |