Portability fix for Value. The MSVC CRT doesn't complain about memcpy_s unless _CRT_SECURE_DEPRECATE_MEMORY is defined (and it isn't); there are no other callers of memcpy_s in base. (And seriously, what's an extra count argument supposed to solve, anyway?) current_entry_type is dropped because it's unused. A virtual destructor is added to ValueSerializer to conform to the style guide and quiet gcc's helpful warning.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@434 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/values.h b/base/values.h
index 3a531a6..386f54c 100644
--- a/base/values.h
+++ b/base/values.h
@@ -369,6 +369,8 @@
// deserialize Value objects.
class ValueSerializer {
public:
+ virtual ~ValueSerializer() {}
+
virtual bool Serialize(const Value& root) = 0;
// This method deserializes the subclass-specific format into a Value object.