blob: b458684149b559f06e20e92f814770651d002399 [file] [log] [blame]
// Copyright (c) 2013 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 CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
#define CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_
#include "chrome/browser/storage_monitor/storage_info.h"
// 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() {}
};
#endif // CHROME_BROWSER_STORAGE_MONITOR_REMOVABLE_STORAGE_OBSERVER_H_