Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Side by Side Diff: chrome/browser/system_monitor/removable_device_notifications_linux.cc

Issue 10917166: Extend the capability of SystemMonitor to support watching storage free space change (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // RemovableDeviceNotificationsLinux implementation. 5 // RemovableDeviceNotificationsLinux implementation.
6 6
7 #include "chrome/browser/system_monitor/removable_device_notifications_linux.h" 7 #include "chrome/browser/system_monitor/removable_device_notifications_linux.h"
8 8
9 #include <libudev.h> 9 #include <libudev.h>
10 #include <mntent.h> 10 #include <mntent.h>
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 mount_info_map_[mount_point] = mount_point_info; 503 mount_info_map_[mount_point] = mount_point_info;
504 mount_priority_map_[mount_device][mount_point] = removable; 504 mount_priority_map_[mount_device][mount_point] = removable;
505 505
506 if (removable) { 506 if (removable) {
507 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, 507 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name,
508 mount_point.value()); 508 mount_point.value());
509 } 509 }
510 } 510 }
511 511
512 bool RemovableDeviceNotificationsLinux::StartWatchingStorage(
513 const FilePath::StringType& path) {
514 // TODO(hongbo): Add the implementation for Linux.
515 return false;
516 }
517
518 bool RemovableDeviceNotificationsLinux::StopWatchingStorage(
519 const FilePath::StringType& path) {
520 // TODO(hongbo): Add the implementation for Linux.
521 return false;
522 }
523
512 } // namespace chrome 524 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698