#ifndef CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_
#define CONTENT_RENDERER_STATS_COLLECTION_CONTROLLER_H_
#include "base/basictypes.h"
#include "gin/wrappable.h"
namespace blink {
class WebFrame;
}
namespace content {
class StatsCollectionController
: public gin::Wrappable<StatsCollectionController> {
public:
static gin::WrapperInfo kWrapperInfo;
static void Install(blink::WebFrame* frame);
private:
StatsCollectionController();
virtual ~StatsCollectionController();
virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
v8::Isolate* isolate) OVERRIDE;
std::string GetHistogram(const std::string& histogram_name);
std::string GetBrowserHistogram(const std::string& histogram_name);
std::string GetTabLoadTiming();
DISALLOW_COPY_AND_ASSIGN(StatsCollectionController);
};
}
#endif