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

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

Issue 1260193009: renderer: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissions-request-multiple
Patch Set: Rebase on top of other change 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_REQUEST_H_
6 #define CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_REQUEST_H_
7
8 #include "base/callback_forward.h"
9 #include "base/macros.h"
10 #include "content/common/permission_service.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
12 #include "url/gurl.h"
13
14 namespace content {
15
16 enum class PermissionType;
17
18 class PermissionPendingRequest {
19 public:
20 using PermissionRequestCallback =
21 mojo::Callback<void(mojo::Array<PermissionStatus>)>;
22
23 PermissionPendingRequest(PermissionRequestCallback callback,
24 int request_count);
25 ~PermissionPendingRequest();
26
27 PermissionRequestCallback& callback() { return callback_; }
28
29 private:
30 PermissionRequestCallback callback_;
31 int request_count_;
32
33 DISALLOW_COPY_AND_ASSIGN(PermissionPendingRequest);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698