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

Unified Diff: base/values.h

Issue 6729002: Base: A few more files using BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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
« no previous file with comments | « base/tracked.h ('k') | base/version.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
===================================================================
--- base/values.h (revision 78949)
+++ base/values.h (working copy)
@@ -27,6 +27,7 @@
#include <string>
#include <vector>
+#include "base/base_api.h"
#include "base/basictypes.h"
#include "base/string16.h"
#include "build/build_config.h"
@@ -44,7 +45,7 @@
// The Value class is the base class for Values. A Value can be
// instantiated via the Create*Value() factory methods, or by directly
// creating instances of the subclasses.
-class Value {
+class BASE_API Value {
public:
enum ValueType {
TYPE_NULL = 0,
@@ -122,7 +123,7 @@
};
// FundamentalValue represents the simple fundamental types of values.
-class FundamentalValue : public Value {
+class BASE_API FundamentalValue : public Value {
public:
explicit FundamentalValue(bool in_value);
explicit FundamentalValue(int in_value);
@@ -146,7 +147,7 @@
DISALLOW_COPY_AND_ASSIGN(FundamentalValue);
};
-class StringValue : public Value {
+class BASE_API StringValue : public Value {
public:
// Initializes a StringValue with a UTF-8 narrow character string.
explicit StringValue(const std::string& in_value);
@@ -168,7 +169,7 @@
DISALLOW_COPY_AND_ASSIGN(StringValue);
};
-class BinaryValue: public Value {
+class BASE_API BinaryValue: public Value {
public:
virtual ~BinaryValue();
@@ -205,7 +206,7 @@
// DictionaryValue provides a key-value dictionary with (optional) "path"
// parsing for recursive access; see the comment at the top of the file. Keys
// are |std::string|s and should be UTF-8 encoded.
-class DictionaryValue : public Value {
+class BASE_API DictionaryValue : public Value {
public:
DictionaryValue();
virtual ~DictionaryValue();
@@ -313,7 +314,7 @@
// YOU SHOULD ALWAYS USE THE XXXWithoutPathExpansion() APIs WITH THESE, NOT
// THE NORMAL XXX() APIs. This makes sure things will work correctly if any
// keys have '.'s in them.
- class key_iterator
+ class BASE_API key_iterator
: private std::iterator<std::input_iterator_tag, const std::string> {
public:
explicit key_iterator(ValueMap::const_iterator itr) { itr_ = itr; }
@@ -343,7 +344,7 @@
};
// This type of Value represents a list of other Value values.
-class ListValue : public Value {
+class BASE_API ListValue : public Value {
public:
typedef ValueVector::iterator iterator;
typedef ValueVector::const_iterator const_iterator;
@@ -432,7 +433,7 @@
// This interface is implemented by classes that know how to serialize and
// deserialize Value objects.
-class ValueSerializer {
+class BASE_API ValueSerializer {
public:
virtual ~ValueSerializer();
« no previous file with comments | « base/tracked.h ('k') | base/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698