| Index: chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
|
| diff --git a/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h b/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4fdb1809fa4a7f5b2ea8ea97d4e1de252d77a891
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
|
| @@ -0,0 +1,35 @@
|
| +// 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 CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_
|
| +#define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h"
|
| +
|
| +namespace content {
|
| +class WebUI;
|
| +}
|
| +
|
| +class Profile;
|
| +
|
| +// Implementation of SiteEngagementUIHandler that gets information from the
|
| +// SiteEngagementService to provide data for the WebUI.
|
| +class SiteEngagementUIHandlerImpl : public SiteEngagementUIHandler {
|
| + public:
|
| + explicit SiteEngagementUIHandlerImpl(content::WebUI* web_ui);
|
| + ~SiteEngagementUIHandlerImpl() override;
|
| +
|
| + // SiteEngagementUIHandler overrides:
|
| + void GetSiteEngagementInfo(
|
| + const GetSiteEngagementInfoCallback& callback) override;
|
| +
|
| + private:
|
| + // The Profile* for the content::WebUI handed to us in our constructor.
|
| + Profile* profile_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SiteEngagementUIHandlerImpl);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_
|
|
|