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

Side by Side Diff: content/public/common/simple_connection_filter.h

Issue 2810343002: Convert UtilityThread/Clients to add ConnectionFilters instead of using ChildThread's InterfaceRegi… (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/common/simple_connection_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
6 #define CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "content/common/content_export.h"
12 #include "content/public/common/connection_filter.h"
13
14 namespace service_manager {
15 class BinderRegistry;
16 }
17
18 namespace content {
19
20 class CONTENT_EXPORT SimpleConnectionFilter : public ConnectionFilter {
21 public:
22 explicit SimpleConnectionFilter(
23 std::unique_ptr<service_manager::BinderRegistry> registry);
24 ~SimpleConnectionFilter() override;
25
26 // ConnectionFilter:
27 void OnBindInterface(const service_manager::ServiceInfo& source_info,
28 const std::string& interface_name,
29 mojo::ScopedMessagePipeHandle* interface_pipe,
30 service_manager::Connector* connector) override;
31
32 private:
33 std::unique_ptr<service_manager::BinderRegistry> registry_;
34
35 DISALLOW_COPY_AND_ASSIGN(SimpleConnectionFilter);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
OLDNEW
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/common/simple_connection_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698