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

Side by Side Diff: ios/web/public/web_state/web_state_interface_provider.h

Issue 2847743003: Eliminate InterfaceRegistry (Closed)
Patch Set: . Created 3 years, 7 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 2017 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 IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_
6 #define IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_
7
8 #include "base/macros.h"
9 #include "mojo/public/cpp/bindings/binding.h"
10 #include "services/service_manager/public/cpp/binder_registry.h"
11 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
12
13 namespace web {
14
15 class WebStateInterfaceProvider
16 : public service_manager::mojom::InterfaceProvider {
17 public:
18 WebStateInterfaceProvider();
19 ~WebStateInterfaceProvider() override;
20
21 void Bind(service_manager::mojom::InterfaceProviderRequest request);
22
23 service_manager::BinderRegistry* registry() { return &registry_; }
24
25 private:
26 // service_manager::mojom::InterfaceProvider:
27 void GetInterface(const std::string& interface_name,
28 mojo::ScopedMessagePipeHandle handle) override;
29
30 service_manager::BinderRegistry registry_;
31
32 mojo::Binding<service_manager::mojom::InterfaceProvider> binding_;
33
34 DISALLOW_COPY_AND_ASSIGN(WebStateInterfaceProvider);
35 };
36
37 } // namespace web
38
39 #endif // IOS_WEB_WEB_STATE_WEB_STATE_INTERFACE_PROVIDER_H_
OLDNEW
« no previous file with comments | « ios/web/public/web_state/web_state.h ('k') | ios/web/public/web_state/web_state_interface_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698