OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/cros/mount_library.h" | 5 #include "chrome/browser/chromeos/cros/mount_library.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <sys/statvfs.h> | 8 #include <sys/statvfs.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "chrome/browser/chromeos/cros/cros_library.h" | 13 #include "chrome/browser/chromeos/cros/cros_library.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 | 15 |
| 16 using content::BrowserThread; |
| 17 |
16 const char* kLibraryNotLoaded = "Cros Library not loaded"; | 18 const char* kLibraryNotLoaded = "Cros Library not loaded"; |
17 const char* kDeviceNotFound = "Device could not be found"; | 19 const char* kDeviceNotFound = "Device could not be found"; |
18 | 20 |
19 namespace chromeos { | 21 namespace chromeos { |
20 | 22 |
21 // static | 23 // static |
22 std::string MountLibrary::MountTypeToString(MountType type) { | 24 std::string MountLibrary::MountTypeToString(MountType type) { |
23 switch (type) { | 25 switch (type) { |
24 case MOUNT_TYPE_DEVICE: | 26 case MOUNT_TYPE_DEVICE: |
25 return "device"; | 27 return "device"; |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 MountLibrary* impl; | 840 MountLibrary* impl; |
839 if (stub) | 841 if (stub) |
840 impl = new MountLibraryStubImpl(); | 842 impl = new MountLibraryStubImpl(); |
841 else | 843 else |
842 impl = new MountLibraryImpl(); | 844 impl = new MountLibraryImpl(); |
843 impl->Init(); | 845 impl->Init(); |
844 return impl; | 846 return impl; |
845 } | 847 } |
846 | 848 |
847 } // namespace chromeos | 849 } // namespace chromeos |
OLD | NEW |