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

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

Issue 1706503002: Add enterprise policy to turn off Bluetooth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Release the BrowserMessageFilter::Internal once it has attached the Sender. Created 4 years, 10 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/public/browser/content_browser_client.h
diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h
index 9e6c1745d80d750c65cfa8fbc47d39881ce421e7..a3a37b3d9d997c04f6f08f5f881d9af5ec68b391 100644
--- a/content/public/browser/content_browser_client.h
+++ b/content/public/browser/content_browser_client.h
@@ -84,6 +84,10 @@ namespace ui {
class SelectFilePolicy;
}
+namespace url {
+class Origin;
+}
+
namespace storage {
class ExternalMountPoints;
class FileSystemBackend;
@@ -410,6 +414,10 @@ class CONTENT_EXPORT ContentBrowserClient {
// Allow the embedder to control whether we can use <keygen>.
virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context);
+ // Allow the embedder to control whether we can use Web Bluetooth.
+ // TODO(crbug.com/589228): Replace this with a use of the permission system.
+ virtual bool AllowWebBluetooth();
+
// Allow the embedder to override the request context based on the URL for
// certain operations, like cookie access. Returns nullptr to indicate the
// regular request context should be used.

Powered by Google App Engine
This is Rietveld 408576698