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

Unified Diff: content/shell/browser/layout_test/blink_test_controller.h

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: updated test code Created 3 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: content/shell/browser/layout_test/blink_test_controller.h
diff --git a/content/shell/browser/layout_test/blink_test_controller.h b/content/shell/browser/layout_test/blink_test_controller.h
index 388ac5f433ec8f04dee44a87a6090b03f55c7bfd..7676eb6754fff40ec77e915ed583f67d1c745a4d 100644
--- a/content/shell/browser/layout_test/blink_test_controller.h
+++ b/content/shell/browser/layout_test/blink_test_controller.h
@@ -38,6 +38,8 @@ class SkBitmap;
namespace content {
+class BluetoothAllowedDevicesMapBase;
+class BrowserContext;
class LayoutTestBluetoothChooserFactory;
class LayoutTestDevToolsFrontend;
class RenderFrameHost;
@@ -150,6 +152,8 @@ class BlinkTestController : public base::NonThreadSafe,
std::unique_ptr<BluetoothChooser> RunBluetoothChooser(
RenderFrameHost* frame,
const BluetoothChooser::EventHandler& event_handler);
+ BluetoothAllowedDevicesMapBase* GetBluetoothAllowedDevicesMap(
+ BrowserContext* browser_context);
BlinkTestResultPrinter* printer() { return printer_.get(); }
void set_printer(BlinkTestResultPrinter* printer) { printer_.reset(printer); }
@@ -217,6 +221,7 @@ class BlinkTestController : public base::NonThreadSafe,
void OnSendBluetoothManualChooserEvent(const std::string& event,
const std::string& argument);
mojom::LayoutTestControl* GetLayoutTestControlPtr(RenderFrameHost* frame);
+ void OnResetBluetoothAllowedDevicesMap();
std::unique_ptr<BlinkTestResultPrinter> printer_;
@@ -289,6 +294,9 @@ class BlinkTestController : public base::NonThreadSafe,
ScopedAllowWaitForAndroidLayoutTests reduced_restrictions_;
#endif
+ std::map<BrowserContext*, std::unique_ptr<BluetoothAllowedDevicesMapBase>>
+ browser_contenxt_to_bluetooth_allowed_devices_map_;
+
DISALLOW_COPY_AND_ASSIGN(BlinkTestController);
};

Powered by Google App Engine
This is Rietveld 408576698