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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/simple_connection_filter.h
diff --git a/content/public/common/simple_connection_filter.h b/content/public/common/simple_connection_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ef4f637a2b678f150ff3a046b433a32252f3afb
--- /dev/null
+++ b/content/public/common/simple_connection_filter.h
@@ -0,0 +1,40 @@
+// Copyright 2017 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 CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
+#define CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
+
+#include <memory>
+#include <string>
+
+#include "content/common/content_export.h"
+#include "content/public/common/connection_filter.h"
+
+namespace service_manager {
+class BinderRegistry;
+}
+
+namespace content {
+
+class CONTENT_EXPORT SimpleConnectionFilter : public ConnectionFilter {
+ public:
+ explicit SimpleConnectionFilter(
+ std::unique_ptr<service_manager::BinderRegistry> registry);
+ ~SimpleConnectionFilter() override;
+
+ // ConnectionFilter:
+ void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle* interface_pipe,
+ service_manager::Connector* connector) override;
+
+ private:
+ std::unique_ptr<service_manager::BinderRegistry> registry_;
+
+ DISALLOW_COPY_AND_ASSIGN(SimpleConnectionFilter);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_SIMPLE_CONNECTION_FILTER_H_
« 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