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

Side by Side Diff: device/usb/usb_service.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_USB_USB_SERVICE_H_ 5 #ifndef DEVICE_USB_USB_SERVICE_H_
6 #define DEVICE_USB_USB_SERVICE_H_ 6 #define DEVICE_USB_USB_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void AddObserver(Observer* observer); 55 void AddObserver(Observer* observer);
56 void RemoveObserver(Observer* observer); 56 void RemoveObserver(Observer* observer);
57 57
58 protected: 58 protected:
59 UsbService(); 59 UsbService();
60 virtual ~UsbService(); 60 virtual ~UsbService();
61 61
62 void NotifyDeviceAdded(scoped_refptr<UsbDevice> device); 62 void NotifyDeviceAdded(scoped_refptr<UsbDevice> device);
63 void NotifyDeviceRemoved(scoped_refptr<UsbDevice> device); 63 void NotifyDeviceRemoved(scoped_refptr<UsbDevice> device);
64 64
65 ObserverList<Observer, true> observer_list_; 65 base::ObserverList<Observer, true> observer_list_;
66 66
67 private: 67 private:
68 friend void base::DeletePointer<UsbService>(UsbService* service); 68 friend void base::DeletePointer<UsbService>(UsbService* service);
69 69
70 DISALLOW_COPY_AND_ASSIGN(UsbService); 70 DISALLOW_COPY_AND_ASSIGN(UsbService);
71 }; 71 };
72 72
73 } // namespace device 73 } // namespace device
74 74
75 #endif // DEVICE_USB_USB_SERVICE_H_ 75 #endif // DEVICE_USB_USB_SERVICE_H_
OLDNEW
« no previous file with comments | « device/nfc/nfc_tag_technology_chromeos.h ('k') | extensions/browser/api/audio/audio_service_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698