OLD | NEW |
1 /* | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
3 * 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 |
4 * found in the LICENSE file. | 3 * found in the LICENSE file. |
5 */ | 4 */ |
| 5 #ifndef LIBRARIES_NACL_MOUNTS_PATH_H_ |
| 6 #define LIBRARIES_NACL_MOUNTS_PATH_H_ |
6 | 7 |
7 #ifndef PACKAGES_LIBRARIES_NACL_MOUNTS_PATH_H_ | |
8 #define PACKAGES_LIBRARIES_NACL_MOUNTS_PATH_H_ | |
9 | |
10 #include <stdint.h> | |
11 #include <string> | 8 #include <string> |
12 #include <vector> | 9 #include <vector> |
13 | 10 |
14 #include "macros.h" | 11 #include "utils/macros.h" |
15 | 12 |
16 typedef std::vector<std::string> StringArray_t; | 13 typedef std::vector<std::string> StringArray_t; |
17 | 14 |
18 class Path { | 15 class Path { |
19 public: | 16 public: |
20 Path(); | 17 Path(); |
21 Path(const Path& path); | 18 Path(const Path& path); |
22 | 19 |
23 // This constructor splits path by '/' as a starting point for this Path. | 20 // This constructor splits path by '/' as a starting point for this Path. |
24 // If the path begins with the character '/', the path is considered | 21 // If the path begins with the character '/', the path is considered |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 Path& operator=(const std::string& str); | 57 Path& operator=(const std::string& str); |
61 | 58 |
62 private: | 59 private: |
63 // Internal representation of the path stored an array of string representing | 60 // Internal representation of the path stored an array of string representing |
64 // the directory traversal. The first string is a "/" if this is an abolute | 61 // the directory traversal. The first string is a "/" if this is an abolute |
65 // path. | 62 // path. |
66 StringArray_t paths_; | 63 StringArray_t paths_; |
67 }; | 64 }; |
68 | 65 |
69 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_PATH_H_ | 66 #endif // PACKAGES_LIBRARIES_NACL_MOUNTS_PATH_H_ |
70 | |
OLD | NEW |