#ifndef CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_
#define CHROME_RENDERER_EXTENSIONS_ACTIVITY_LOG_CONVERTER_STRATEGY_H_
#include "base/compiler_specific.h"
#include "content/public/renderer/v8_value_converter.h"
#include "v8/include/v8.h"
namespace extensions {
class ActivityLogConverterStrategy
: public content::V8ValueConverter::Strategy {
public:
virtual ~ActivityLogConverterStrategy() {}
virtual bool FromV8Object(v8::Handle<v8::Object> value,
base::Value** out,
v8::Isolate* isolate) const OVERRIDE;
virtual bool FromV8Array(v8::Handle<v8::Array> value,
base::Value** out,
v8::Isolate* isolate) const OVERRIDE;
private:
bool FromV8ObjectInternal(v8::Handle<v8::Object> value,
base::Value** out,
v8::Isolate* isolate) const;
};
}
#endif