OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 // MtabWatcherLinux implementation. | 5 // MtabWatcherLinux implementation. |
6 | 6 |
7 #include "components/storage_monitor/mtab_watcher_linux.h" | 7 #include "components/storage_monitor/mtab_watcher_linux.h" |
8 | 8 |
9 #include <mntent.h> | 9 #include <mntent.h> |
| 10 #include <stddef.h> |
10 #include <stdio.h> | 11 #include <stdio.h> |
11 | 12 |
12 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/macros.h" |
13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
17 // List of file systems we care about. | 19 // List of file systems we care about. |
18 const char* const kKnownFileSystems[] = { | 20 const char* const kKnownFileSystems[] = { |
19 "btrfs", | 21 "btrfs", |
20 "ext2", | 22 "ext2", |
21 "ext3", | 23 "ext3", |
22 "ext4", | 24 "ext4", |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 99 } |
98 if (error) { | 100 if (error) { |
99 LOG(ERROR) << "Error watching " << mtab_path_.value(); | 101 LOG(ERROR) << "Error watching " << mtab_path_.value(); |
100 return; | 102 return; |
101 } | 103 } |
102 | 104 |
103 ReadMtab(); | 105 ReadMtab(); |
104 } | 106 } |
105 | 107 |
106 } // namespace storage_monitor | 108 } // namespace storage_monitor |
OLD | NEW |