OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/storage_monitor/mtab_watcher_linux.h" | 7 #include "chrome/browser/storage_monitor/mtab_watcher_linux.h" |
8 | 8 |
9 #include <mntent.h> | 9 #include <mntent.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
15 namespace chrome { | |
16 | |
17 namespace { | 15 namespace { |
18 | 16 |
19 // List of file systems we care about. | 17 // List of file systems we care about. |
20 const char* const kKnownFileSystems[] = { | 18 const char* const kKnownFileSystems[] = { |
21 "ext2", | 19 "ext2", |
22 "ext3", | 20 "ext3", |
23 "ext4", | 21 "ext4", |
24 "fat", | 22 "fat", |
25 "hfsplus", | 23 "hfsplus", |
26 "iso9660", | 24 "iso9660", |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 NOTREACHED(); | 92 NOTREACHED(); |
95 return; | 93 return; |
96 } | 94 } |
97 if (error) { | 95 if (error) { |
98 LOG(ERROR) << "Error watching " << mtab_path_.value(); | 96 LOG(ERROR) << "Error watching " << mtab_path_.value(); |
99 return; | 97 return; |
100 } | 98 } |
101 | 99 |
102 ReadMtab(); | 100 ReadMtab(); |
103 } | 101 } |
104 | |
105 } // namespace chrome | |
OLD | NEW |