blob: 72d5bd7a684648509f4dcb7ab2bddd161f873af8 [file] [log] [blame]
// Copyright 2016 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 COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION_H_
#define COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION_H_
#include <string>
#include "base/macros.h"
#include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
namespace web_restrictions {
class WebRestrictionsClient;
class WebRestrictionsMojoImplementation : public mojom::WebRestrictions {
public:
explicit WebRestrictionsMojoImplementation(WebRestrictionsClient* client);
~WebRestrictionsMojoImplementation() override;
static void Create(WebRestrictionsClient* client,
mojom::WebRestrictionsRequest request);
private:
void GetResult(const std::string& url, GetResultCallback callback) override;
void RequestPermission(const std::string& url,
RequestPermissionCallback callback) override;
WebRestrictionsClient* web_restrictions_client_;
};
} // namespace web_restrictions
#endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION_H_