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

Side by Side Diff: content/browser/permissions/permission_pending_multiple_request.h

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Merge patches Created 5 years, 4 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 unified diff | Download patch
OLDNEW
(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;
33
34 private:
35 int request_count;
36
37 DISALLOW_COPY_AND_ASSIGN(PermissionPendingMultipleRequest);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_MULTIPLE_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698