Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: components/web_restrictions/browser/web_restrictions_mojo_implementation.h

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION _H_
6 #define COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTATION _H_
7
8 #include <string>
9
10 #include "base/macros.h"
11 #include "components/web_restrictions/interfaces/web_restrictions.mojom.h"
12 #include "mojo/public/cpp/bindings/strong_binding.h"
13
14 namespace web_restrictions {
15
16 class WebRestrictionsClient;
17
18 class WebRestrictionsMojoImplementation : public mojom::WebRestrictions {
19 public:
20 static void Create(WebRestrictionsClient* client,
21 mojo::InterfaceRequest<mojom::WebRestrictions> request);
22
23 private:
24 WebRestrictionsMojoImplementation(
25 WebRestrictionsClient* client,
26 mojo::InterfaceRequest<mojom::WebRestrictions> request);
27 ~WebRestrictionsMojoImplementation() override;
28
29 void GetResult(const std::string& url,
30 const GetResultCallback& callback) override;
31 void RequestPermission(const std::string& url,
32 const RequestPermissionCallback& callback) override;
33
34 mojo::StrongBinding<mojom::WebRestrictions> binding_;
35 WebRestrictionsClient* web_restrictions_client_;
36 };
37
38 } // namespace web_restrictions
39 #endif // COMPONENTS_WEB_RESTRICTIONS_BROWSER_WEB_RESTRICTIONS_MOJO_IMPLEMENTAT ION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698