#ifndef CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_HANDLER_H_
#define CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_MEMORY_INTERNALS_HANDLER_H_
#include <string>
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
class ListValue;
}
class MemoryInternalsProxy;
class MemoryInternalsHandler : public content::WebUIMessageHandler {
public:
MemoryInternalsHandler();
virtual ~MemoryInternalsHandler();
virtual void RegisterMessages() OVERRIDE;
void OnJSUpdate(const base::ListValue* list);
void OnUpdate(const base::string16& update);
private:
scoped_refptr<MemoryInternalsProxy> proxy_;
DISALLOW_COPY_AND_ASSIGN(MemoryInternalsHandler);
};
#endif