OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ |
6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ | 6 #define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ |
7 | 7 |
8 #include "chrome/browser/storage_monitor/storage_info.h" | 8 #include "chrome/browser/storage_monitor/storage_info.h" |
9 | 9 |
10 namespace chrome { | |
11 | |
12 // Clients use this class to register for event-based notifications of | 10 // Clients use this class to register for event-based notifications of |
13 // removable storage devices attached to or removed from the system. | 11 // removable storage devices attached to or removed from the system. |
14 class RemovableStorageObserver { | 12 class RemovableStorageObserver { |
15 public: | 13 public: |
16 // When a removable storage device is attached, this | 14 // When a removable storage device is attached, this |
17 // event is triggered. | 15 // event is triggered. |
18 virtual void OnRemovableStorageAttached(const StorageInfo& info) {} | 16 virtual void OnRemovableStorageAttached(const StorageInfo& info) {} |
19 | 17 |
20 // When a removable storage device is detached, this | 18 // When a removable storage device is detached, this |
21 // event is triggered. | 19 // event is triggered. |
22 virtual void OnRemovableStorageDetached(const StorageInfo& info) {} | 20 virtual void OnRemovableStorageDetached(const StorageInfo& info) {} |
23 | 21 |
24 protected: | 22 protected: |
25 virtual ~RemovableStorageObserver() {} | 23 virtual ~RemovableStorageObserver() {} |
26 }; | 24 }; |
27 | 25 |
28 } // namespace chrome | |
29 | |
30 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ | 26 #endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_ |
OLD | NEW |