blob: 67d578ef1609dd66a6af15f6bf4baa8f52dfbd4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
#define COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
#include "components/storage_monitor/storage_info.h"
namespace storage_monitor {
// Clients use this class to register for event-based notifications of
// removable storage devices attached to or removed from the system.
class RemovableStorageObserver {
public:
// When a removable storage device is attached, this
// event is triggered.
virtual void OnRemovableStorageAttached(const StorageInfo& info) {}
// When a removable storage device is detached, this
// event is triggered.
virtual void OnRemovableStorageDetached(const StorageInfo& info) {}
protected:
virtual ~RemovableStorageObserver() {}
};
} // namespace storage_monitor
#endif // COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
|