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

Unified Diff: device/usb/usb_service.h

Issue 891853002: Add a UsbService::Observer function for cleanup actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | device/usb/usb_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service.h
diff --git a/device/usb/usb_service.h b/device/usb/usb_service.h
index 4655bfdbfa64d2ee640edbbde783f51aa10fc46c..a2dfa9ec9151368a0acde32b39cf07f2168f9c75 100644
--- a/device/usb/usb_service.h
+++ b/device/usb/usb_service.h
@@ -35,6 +35,9 @@ class UsbService : public base::NonThreadSafe {
// was created.
virtual void OnDeviceAdded(scoped_refptr<UsbDevice> device);
virtual void OnDeviceRemoved(scoped_refptr<UsbDevice> device);
+ // For observers that need to process device removal after others have run.
+ // Should not depend on any other service's knowledge of connected devices.
+ virtual void OnDeviceRemovedCleanup(scoped_refptr<UsbDevice> device);
};
// The UI task runner reference is used to talk to the PermissionBrokerClient
« no previous file with comments | « no previous file | device/usb/usb_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698