| Index: components/web_restrictions/browser/web_restrictions_mojo_implementation.h
|
| diff --git a/components/web_restrictions/browser/web_restrictions_mojo_implementation.h b/components/web_restrictions/browser/web_restrictions_mojo_implementation.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c1616c36092cbf29924920b378f3ed30cb4fcda5
|
| --- /dev/null
|
| +++ b/components/web_restrictions/browser/web_restrictions_mojo_implementation.h
|
| @@ -0,0 +1,39 @@
|
| +// 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"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace web_restrictions {
|
| +
|
| +class WebRestrictionsClient;
|
| +
|
| +class WebRestrictionsMojoImplementation : public mojom::WebRestrictions {
|
| + public:
|
| + static void Create(WebRestrictionsClient* client,
|
| + mojo::InterfaceRequest<mojom::WebRestrictions> request);
|
| +
|
| + private:
|
| + WebRestrictionsMojoImplementation(
|
| + WebRestrictionsClient* client,
|
| + mojo::InterfaceRequest<mojom::WebRestrictions> request);
|
| + virtual ~WebRestrictionsMojoImplementation();
|
| +
|
| + void GetResult(const mojo::String& url,
|
| + const GetResultCallback& callback) override;
|
| + void RequestPermission(const mojo::String& url,
|
| + const RequestPermissionCallback& callback) override;
|
| +
|
| + mojo::StrongBinding<mojom::WebRestrictions> binding_;
|
| + WebRestrictionsClient* web_restrictions_client_;
|
| +};
|
| +
|
| +} // namespace web_restrictions
|
| +#endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION_H_
|
|
|