blob: 0fa7f8498fb6186319da6b7fc5b6aa3fc600ae81 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
#define IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
#include "base/macros.h"
#include "ios/web/public/webui/web_ui_ios_message_handler.h"
namespace base {
class ListValue;
}
// Handler class for Version page operations.
class VersionHandler : public web::WebUIIOSMessageHandler {
public:
VersionHandler();
~VersionHandler() override;
// content::WebUIMessageHandler implementation.
void RegisterMessages() override;
// Callback for the "requestVariationInfo" message. This responds immediately
// with the list of variations.
void HandleRequestVariationInfo(const base::ListValue* args);
private:
DISALLOW_COPY_AND_ASSIGN(VersionHandler);
};
#endif // IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_