#ifndef CHROME_BROWSER_UI_WEBUI_PROFILER_UI_H_
#define CHROME_BROWSER_UI_WEBUI_PROFILER_UI_H_
#include "base/memory/weak_ptr.h"
#include "chrome/browser/metrics/tracking_synchronizer_observer.h"
#include "content/public/browser/web_ui_controller.h"
class ProfilerUI : public content::WebUIController,
public chrome_browser_metrics::TrackingSynchronizerObserver {
public:
explicit ProfilerUI(content::WebUI* web_ui);
virtual ~ProfilerUI();
void GetData();
private:
virtual void ReceivedProfilerData(
const tracked_objects::ProcessDataSnapshot& profiler_data,
int process_type) OVERRIDE;
base::WeakPtrFactory<ProfilerUI> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ProfilerUI);
};
#endif