| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // runs |callback|. | 126 // runs |callback|. |
| 127 // | 127 // |
| 128 // Must be called from UI/IO thread. | 128 // Must be called from UI/IO thread. |
| 129 void EnsureDirectoryExists(Profile* profile, | 129 void EnsureDirectoryExists(Profile* profile, |
| 130 const FilePath& directory, | 130 const FilePath& directory, |
| 131 const FileOperationCallback& callback); | 131 const FileOperationCallback& callback); |
| 132 | 132 |
| 133 // Converts GData error code into file platform error code. | 133 // Converts GData error code into file platform error code. |
| 134 DriveFileError GDataToDriveFileError(google_apis::GDataErrorCode status); | 134 DriveFileError GDataToDriveFileError(google_apis::GDataErrorCode status); |
| 135 | 135 |
| 136 // Returns true if the current network connection is over cellular. | |
| 137 bool IsConnectionTypeCellular(); | |
| 138 | |
| 139 } // namespace util | 136 } // namespace util |
| 140 } // namespace drive | 137 } // namespace drive |
| 141 | 138 |
| 142 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ | 139 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_FILE_SYSTEM_UTIL_H_ |
| OLD | NEW |