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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/path.h

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix whitespace Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_mounts/path.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/path.h b/native_client_sdk/src/libraries/nacl_mounts/path.h
deleted file mode 100644
index 243fa16743376e49dae39264e596220c9f515bac..0000000000000000000000000000000000000000
--- a/native_client_sdk/src/libraries/nacl_mounts/path.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-#ifndef LIBRARIES_NACL_MOUNTS_PATH_H_
-#define LIBRARIES_NACL_MOUNTS_PATH_H_
-
-#include <string>
-#include <vector>
-
-#include "utils/macros.h"
-
-typedef std::vector<std::string> StringArray_t;
-
-class Path {
- public:
- Path();
- Path(const Path& path);
-
- // This constructor splits path by '/' as a starting point for this Path.
- // If the path begins with the character '/', the path is considered
- // to be absolute.
- explicit Path(const std::string& path);
- ~Path();
-
-
- // Return true of the first path item is '/'.
- bool IsAbsolute() const;
-
- // Return a part of the path
- const std::string& Part(size_t index) const;
-
- // Return the number of path parts
- size_t Size() const;
-
- // Return true of this is the top of the path
- bool Top() const;
-
- // Update the path.
- Path& Append(const std::string& path);
- Path& Prepend(const std::string& path);
- Path& Set(const std::string& path);
-
- // Return the parent path.
- Path Parent() const;
- std::string Basename() const;
-
- std::string Join() const;
- std::string Range(size_t start, size_t end) const;
- StringArray_t Split() const;
-
- // Collapse the string list removing extraneous '.', '..' path components
- static StringArray_t Normalize(const StringArray_t& paths);
- static std::string Join(const StringArray_t& paths);
- static std::string Range(const StringArray_t& paths, size_t start,
- size_t end);
- static StringArray_t Split(const std::string& paths);
- // Operator versions
- Path& operator=(const Path& p);
- Path& operator=(const std::string& str);
-
- private:
- // Internal representation of the path stored an array of string representing
- // the directory traversal. The first string is a "/" if this is an abolute
- // path.
- StringArray_t paths_;
-};
-
-#endif // PACKAGES_LIBRARIES_NACL_MOUNTS_PATH_H_
« 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