| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module mojo { | |
| 6 | |
| 7 // Provides access to system information. | |
| 8 interface ProfileService { | |
| 9 | |
| 10 enum PathKey { | |
| 11 DIR_TEMP // temporary directory | |
| 12 }; | |
| 13 | |
| 14 // Returns a path to a special directory or file. If you ask for a directory | |
| 15 // it is guaranteed to NOT have a path separator at the end. For example, | |
| 16 // "c:\windows\temp" Returns |null| if the directory of path doesn't exist. | |
| 17 // On windows and Mac OS X and Chrome OS, path will be utf-8 encoded, on all | |
| 18 // other platform, the encoding is not specified and may depend on the file | |
| 19 // system. | |
| 20 GetPath(PathKey key) => (string path); | |
| 21 }; | |
| 22 | |
| 23 } | |
| OLD | NEW |