OLD | NEW |
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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 protected: | 57 protected: |
58 UsbService(); | 58 UsbService(); |
59 virtual ~UsbService(); | 59 virtual ~UsbService(); |
60 | 60 |
61 void NotifyDeviceAdded(scoped_refptr<UsbDevice> device); | 61 void NotifyDeviceAdded(scoped_refptr<UsbDevice> device); |
62 void NotifyDeviceRemoved(scoped_refptr<UsbDevice> device); | 62 void NotifyDeviceRemoved(scoped_refptr<UsbDevice> device); |
63 | 63 |
64 ObserverList<Observer, true> observer_list_; | 64 ObserverList<Observer, true> observer_list_; |
65 | 65 |
66 private: | 66 private: |
67 friend void base::DeletePointer<UsbService>(UsbService* service); | |
68 | |
69 DISALLOW_COPY_AND_ASSIGN(UsbService); | 67 DISALLOW_COPY_AND_ASSIGN(UsbService); |
70 }; | 68 }; |
71 | 69 |
72 } // namespace device | 70 } // namespace device |
73 | 71 |
74 #endif // DEVICE_USB_USB_SERVICE_H_ | 72 #endif // DEVICE_USB_USB_SERVICE_H_ |
OLD | NEW |