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

Unified 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: Fix review comments 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/permissions/permission_pending_request.h
diff --git a/content/browser/permissions/permission_pending_request.h b/content/browser/permissions/permission_pending_request.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2df3928e4aaeef590f9d7d554f689780742a181
--- /dev/null
+++ b/content/browser/permissions/permission_pending_request.h
@@ -0,0 +1,38 @@
+// 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_REQUEST_H_
+#define CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_REQUEST_H_
+
+#include "base/callback_forward.h"
+#include "base/macros.h"
+#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
+#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.
+#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 :)
+
+namespace content {
+
+enum class PermissionType;
+
+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_
+ public:
+ using PermissionRequestCallback =
+ mojo::Callback<void(mojo::Array<PermissionStatus>)>;
+
+ PermissionPendingRequest(PermissionRequestCallback callback,
+ int request_count);
+ ~PermissionPendingRequest();
+
+ PermissionRequestCallback& callback() { return callback_; }
+
+ private:
+ PermissionRequestCallback callback_;
+ int request_count_;
+
+ DISALLOW_COPY_AND_ASSIGN(PermissionPendingRequest);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_PERMISSIONS_PERMISSION_PENDING_REQUEST_H_

Powered by Google App Engine
This is Rietveld 408576698