#ifndef SYNC_JS_JS_EVENT_DETAILS_H_
#define SYNC_JS_JS_EVENT_DETAILS_H_
#include <string>
#include "base/values.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/util/immutable.h"
namespace syncer {
class SYNC_EXPORT JsEventDetails {
public:
JsEventDetails();
explicit JsEventDetails(base::DictionaryValue* details);
~JsEventDetails();
const base::DictionaryValue& Get() const;
std::string ToString() const;
private:
typedef Immutable<base::DictionaryValue,
HasSwapMemFnByPtr<base::DictionaryValue> >
ImmutableDictionaryValue;
ImmutableDictionaryValue details_;
};
}
#endif