summaryrefslogtreecommitdiffstats
path: root/base/version.h
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-22 07:35:50 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-22 07:35:50 +0000
commit1f04ef4db936365c0cc1990f1a2b8a7bbbe37653 (patch)
tree571f9feea8ed976c01a7bd1cf56cee9894d5c005 /base/version.h
parent9246e364afd394dd3a7cc2bf838c7ea0b4fc1133 (diff)
downloadchromium_src-1f04ef4db936365c0cc1990f1a2b8a7bbbe37653.zip
chromium_src-1f04ef4db936365c0cc1990f1a2b8a7bbbe37653.tar.gz
chromium_src-1f04ef4db936365c0cc1990f1a2b8a7bbbe37653.tar.bz2
Move Version to base namespace.
Adds "using base::Version" to the header to avoid having to update everything at once. All forward declares and the locations where the forward declares are used are updated. Review URL: https://chromiumcodereview.appspot.com/14099010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195456 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/version.h')
-rw-r--r--base/version.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/version.h b/base/version.h
index ab7145e..b3012eb 100644
--- a/base/version.h
+++ b/base/version.h
@@ -11,6 +11,8 @@
#include "base/base_export.h"
#include "base/basictypes.h"
+namespace base {
+
// Version represents a dotted version number, like "1.2.3.4", supporting
// parsing and comparison.
class BASE_EXPORT Version {
@@ -61,4 +63,10 @@ class BASE_EXPORT Version {
std::vector<uint16> components_;
};
+} // namespace base
+
+// TODO(xhwang) remove this when all users are updated to explicitly use the
+// namespace
+using base::Version;
+
#endif // BASE_VERSION_H_