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

Unified Diff: chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h

Issue 1560263002: Store Bluetooth permissions in website settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reillyg@'s comments 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
Index: chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h
diff --git a/chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h b/chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h
index a1555d72d5225d87e73e65eb25e33550cfd86742..74991bbb93de3dcb153c1a7d62a6f83fa5b64566 100644
--- a/chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h
+++ b/chrome/browser/ui/bluetooth/bluetooth_chooser_bubble_delegate.h
@@ -10,6 +10,11 @@
#include "base/macros.h"
#include "chrome/browser/ui/website_settings/chooser_bubble_delegate.h"
#include "components/bubble/bubble_reference.h"
+#include "url/gurl.h"
Jeffrey Yasskin 2016/01/06 19:10:55 I think you can forward-declare GURL too.
juncai 2016/01/11 21:55:16 This include is removed since the related code has
+
+namespace content {
+class WebContents;
+}
class Browser;
class BluetoothChooserDesktop;
@@ -20,7 +25,9 @@ class BluetoothChooserDesktop;
// access a Bluetooth device.
class BluetoothChooserBubbleDelegate : public ChooserBubbleDelegate {
public:
- explicit BluetoothChooserBubbleDelegate(Browser* browser);
+ explicit BluetoothChooserBubbleDelegate(Browser* browser,
+ content::WebContents* web_contents,
+ const GURL& origin);
~BluetoothChooserBubbleDelegate() override;
// ChooserBubbleDelegate:
@@ -48,6 +55,8 @@ class BluetoothChooserBubbleDelegate : public ChooserBubbleDelegate {
private:
// Each pair is a (device name, device id).
std::vector<std::pair<base::string16, std::string>> device_names_and_ids_;
+ content::WebContents* web_contents_;
+ GURL origin_;
BluetoothChooserDesktop* bluetooth_chooser_;
BubbleReference bubble_controller_;

Powered by Google App Engine
This is Rietveld 408576698