| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 5 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // MojoShellConnection: | 38 // MojoShellConnection: |
| 39 void Start() override; | 39 void Start() override; |
| 40 void SetInitializeHandler(const base::Closure& handler) override; | 40 void SetInitializeHandler(const base::Closure& handler) override; |
| 41 shell::Connector* GetConnector() override; | 41 shell::Connector* GetConnector() override; |
| 42 const shell::Identity& GetIdentity() const override; | 42 const shell::Identity& GetIdentity() const override; |
| 43 void SetConnectionLostClosure(const base::Closure& closure) override; | 43 void SetConnectionLostClosure(const base::Closure& closure) override; |
| 44 void SetupInterfaceRequestProxies( | 44 void SetupInterfaceRequestProxies( |
| 45 shell::InterfaceRegistry* registry, | 45 shell::InterfaceRegistry* registry, |
| 46 shell::InterfaceProvider* provider) override; | 46 shell::InterfaceProvider* provider) override; |
| 47 void AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override; | 47 void AddConnectionFilter(std::unique_ptr<ConnectionFilter> filter) override; |
| 48 std::unique_ptr<ConnectionFilter> RemoveConnectionFilter( |
| 49 ConnectionFilter* filter) override; |
| 48 void AddEmbeddedService(const std::string& name, | 50 void AddEmbeddedService(const std::string& name, |
| 49 const MojoApplicationInfo& info) override; | 51 const MojoApplicationInfo& info) override; |
| 50 void AddServiceRequestHandler( | 52 void AddServiceRequestHandler( |
| 51 const std::string& name, | 53 const std::string& name, |
| 52 const ServiceRequestHandler& handler) override; | 54 const ServiceRequestHandler& handler) override; |
| 53 | 55 |
| 54 void OnContextInitialized(const shell::Identity& identity); | 56 void OnContextInitialized(const shell::Identity& identity); |
| 55 void OnConnectionLost(); | 57 void OnConnectionLost(); |
| 56 void CreateService(shell::mojom::ServiceRequest request, | 58 void CreateService(shell::mojom::ServiceRequest request, |
| 57 const mojo::String& name); | 59 const mojo::String& name); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 72 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_; | 74 std::unordered_map<std::string, ServiceRequestHandler> request_handlers_; |
| 73 | 75 |
| 74 base::WeakPtrFactory<MojoShellConnectionImpl> weak_factory_; | 76 base::WeakPtrFactory<MojoShellConnectionImpl> weak_factory_; |
| 75 | 77 |
| 76 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); | 78 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); |
| 77 }; | 79 }; |
| 78 | 80 |
| 79 } // namespace content | 81 } // namespace content |
| 80 | 82 |
| 81 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ | 83 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ |
| OLD | NEW |