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_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" | |
mlamouri (slow - plz ping)
2015/09/02 11:36:41
Do you really need that?
Lalit Maganti
2015/09/02 14:24:50
No. But I do need the Mojo callback file. Yay for
| |
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
mlamouri (slow - plz ping)
2015/09/02 11:36:41
and that?
Lalit Maganti
2015/09/02 14:24:50
And no.
| |
12 #include "url/gurl.h" | |
mlamouri (slow - plz ping)
2015/09/02 11:36:41
and that?
Lalit Maganti
2015/09/02 14:24:50
And no :)
| |
13 | |
14 namespace content { | |
15 | |
16 enum class PermissionType; | |
17 | |
18 class PermissionPendingRequest { | |
mlamouri (slow - plz ping)
2015/09/02 11:36:41
Why isn't that part of the mojo service implementa
Lalit Maganti
2015/09/02 14:24:50
TBH it could probably be moved back to permisison_
| |
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_ | |
OLD | NEW |