Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / components / storage_monitor / removable_storage_observer.h
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
6 #define COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
7
8 #include "components/storage_monitor/storage_info.h"
9
10 // Clients use this class to register for event-based notifications of
11 // removable storage devices attached to or removed from the system.
12 class RemovableStorageObserver {
13  public:
14   // When a removable storage device is attached, this
15   // event is triggered.
16   virtual void OnRemovableStorageAttached(const StorageInfo& info) {}
17
18   // When a removable storage device is detached, this
19   // event is triggered.
20   virtual void OnRemovableStorageDetached(const StorageInfo& info) {}
21
22  protected:
23   virtual ~RemovableStorageObserver() {}
24 };
25
26 #endif  // COMPONENTS_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_