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

Unified Diff: third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h

Issue 1848603002: Remove single observer assumption in WebUSBClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use EAGERLY_FINALIZE() instead. Created 4 years, 9 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: third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h
diff --git a/third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h b/third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h
index aae5827fdd6563de8325798831f3ee8db04b7f95..18c4a5c8d06876778331c31d9e58cd3ec91f84d1 100644
--- a/third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h
+++ b/third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h
@@ -40,8 +40,11 @@ public:
// Ownership of the WebUSBClientRequestDeviceCallbacks is transferred to the client.
virtual void requestDevice(const WebUSBDeviceRequestOptions&, WebUSBClientRequestDeviceCallbacks*) = 0;
- // Sets the observer of device changes through the WebUSBClient.
- virtual void setObserver(Observer*) = 0;
+ // Adds an observer of device changes to the WebUSBClient.
+ virtual void addObserver(Observer*) = 0;
+
+ // Removes an observer of device changes from the WebUSBClient.
+ virtual void removeObserver(Observer*) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698