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

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: Update and add unit test 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 499
500 mount_info_map_[mount_point] = mount_point_info; 500 mount_info_map_[mount_point] = mount_point_info;
501 mount_priority_map_[mount_device][mount_point] = removable; 501 mount_priority_map_[mount_device][mount_point] = removable;
502 502
503 if (removable) { 503 if (removable) {
504 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name, 504 SystemMonitor::Get()->ProcessRemovableStorageAttached(device_id, name,
505 mount_point.value()); 505 mount_point.value());
506 } 506 }
507 } 507 }
508 508
509 void RemovableDeviceNotificationsLinux::StartWatchingStorage(
510 const FilePath& path) {
511 NOTIMPLEMENTED();
512 }
513
514 void RemovableDeviceNotificationsLinux::StopWatchingStorage(
515 const FilePath& path) {
516 NOTIMPLEMENTED();
517 }
518
509 } // namespace chrome 519 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698