#ifndef CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
#define CONTENT_BROWSER_HISTOGRAM_MESSAGE_FILTER_H_
#include <string>
#include <vector>
#include "content/public/browser/browser_message_filter.h"
#include "content/public/common/process_type.h"
namespace content {
class HistogramMessageFilter : public BrowserMessageFilter {
public:
HistogramMessageFilter();
virtual bool OnMessageReceived(const IPC::Message& message,
bool* message_was_ok) OVERRIDE;
private:
virtual ~HistogramMessageFilter();
void OnChildHistogramData(int sequence_number,
const std::vector<std::string>& pickled_histograms);
void OnGetBrowserHistogram(const std::string& name,
std::string* histogram_json);
DISALLOW_COPY_AND_ASSIGN(HistogramMessageFilter);
};
}
#endif