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

Unified Diff: content/public/browser/chooser_permission_manager.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added code to check session->chooser_permission_manager Created 4 years, 11 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/chooser_permission_manager.h
diff --git a/content/public/browser/chooser_permission_manager.h b/content/public/browser/chooser_permission_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..866bcf041b5a32d58282c55d56d223dc3cb329ee
--- /dev/null
+++ b/content/public/browser/chooser_permission_manager.h
@@ -0,0 +1,40 @@
+// Copyright 2016 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_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
+#define CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
+
+#include <string>
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+
+namespace base {
+class DictionaryValue;
+}
+
+namespace url {
+class Origin;
+}
+
+namespace content {
+enum class PermissionType;
+
+class CONTENT_EXPORT ChooserPermissionManager {
+ public:
+ virtual ~ChooserPermissionManager() = default;
+
+ virtual void GrantPermission(content::PermissionType permission_type,
+ const url::Origin& requesting_origin,
+ const url::Origin& embedding_origin,
+ scoped_ptr<base::DictionaryValue> object) = 0;
+
+ virtual void RevokePermission(content::PermissionType permission_type,
+ const url::Origin& requesting_origin,
+ const url::Origin& embedding_origin,
+ const base::DictionaryValue& object) = 0;
+};
+}
+
+#endif // CONTENT_PUBLIC_BROWSER_CHOOSER_PERMISSION_MANAGER_H_
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/browser/permission_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698