// Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
#include "cros-disks/device-event.h" | |
namespace cros_disks { | |
bool DeviceEvent::IsDiskEvent() const { | |
switch (event_type) { | |
case kDiskAdded: | |
case kDiskAddedAfterRemoved: | |
case kDiskChanged: | |
case kDiskRemoved: | |
return true; | |
default: | |
return false; | |
} | |
} | |
} // namespace cros_disks |