| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_FILES_UTIL_H_ | 5 #ifndef SERVICES_FILES_UTIL_H_ |
| 6 #define SERVICES_FILES_UTIL_H_ | 6 #define SERVICES_FILES_UTIL_H_ |
| 7 | 7 |
| 8 #include "mojo/services/files/public/interfaces/types.mojom.h" | 8 #include "mojo/services/files/interfaces/types.mojom.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 | 11 |
| 12 class String; | 12 class String; |
| 13 | 13 |
| 14 namespace files { | 14 namespace files { |
| 15 | 15 |
| 16 // Validation functions (typically used to check arguments; they return | 16 // Validation functions (typically used to check arguments; they return |
| 17 // |Error::OK| if valid, else the standard/recommended error for the validation | 17 // |Error::OK| if valid, else the standard/recommended error for the validation |
| 18 // error): | 18 // error): |
| (...skipping 27 matching lines...) Expand all Loading... |
| 46 // Converts a |TimespecOrNow| to a |struct timespec|. If |in| is null, | 46 // Converts a |TimespecOrNow| to a |struct timespec|. If |in| is null, |
| 47 // |out->tv_nsec| is set to |UTIME_OMIT|; if |in->now| is set, |out->tv_nsec| is | 47 // |out->tv_nsec| is set to |UTIME_OMIT|; if |in->now| is set, |out->tv_nsec| is |
| 48 // set to |UTIME_NOW|. | 48 // set to |UTIME_NOW|. |
| 49 Error TimespecOrNowToStandardTimespec(const TimespecOrNow* in, | 49 Error TimespecOrNowToStandardTimespec(const TimespecOrNow* in, |
| 50 struct timespec* out); | 50 struct timespec* out); |
| 51 | 51 |
| 52 } // namespace files | 52 } // namespace files |
| 53 } // namespace mojo | 53 } // namespace mojo |
| 54 | 54 |
| 55 #endif // SERVICES_FILES_UTIL_H_ | 55 #endif // SERVICES_FILES_UTIL_H_ |
| OLD | NEW |