OLD | NEW |
(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_ |
OLD | NEW |