Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(686)

Side by Side Diff: native_client_sdk/src/libraries/nacl_mounts/path.h

Issue 10829027: [NaCl SDK] Add nacl_mounts to NaCl SDK build. Experimental for now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync again Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_mounts/ostypes.h ('k') | native_client_sdk/src/libraries/nacl_mounts/path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698