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

Side by Side Diff: services/shell/public/cpp/interface_provider.h

Issue 2107143003: Revert of Make RenderProcessHost/RenderThread use MojoChildConnection/MojoShellConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rph2
Patch Set: Created 4 years, 5 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
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 SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ 5 #ifndef SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ 6 #define SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_
7 7
8 #include "services/shell/public/interfaces/interface_provider.mojom.h" 8 #include "services/shell/public/interfaces/interface_provider.mojom.h"
9 9
10 namespace shell { 10 namespace shell {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const base::Callback<void(mojo::ScopedMessagePipeHandle)>& binder) { 74 const base::Callback<void(mojo::ScopedMessagePipeHandle)>& binder) {
75 binders_[name] = binder; 75 binders_[name] = binder;
76 } 76 }
77 void ClearBinders(); 77 void ClearBinders();
78 78
79 using BinderMap = std::map< 79 using BinderMap = std::map<
80 std::string, base::Callback<void(mojo::ScopedMessagePipeHandle)>>; 80 std::string, base::Callback<void(mojo::ScopedMessagePipeHandle)>>;
81 BinderMap binders_; 81 BinderMap binders_;
82 82
83 mojom::InterfaceProviderPtr interface_provider_; 83 mojom::InterfaceProviderPtr interface_provider_;
84 mojom::InterfaceProviderRequest pending_request_;
85 84
86 base::WeakPtrFactory<InterfaceProvider> weak_factory_; 85 base::WeakPtrFactory<InterfaceProvider> weak_factory_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(InterfaceProvider); 87 DISALLOW_COPY_AND_ASSIGN(InterfaceProvider);
89 }; 88 };
90 89
91 } // namespace shell 90 } // namespace shell
92 91
93 #endif // SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_ 92 #endif // SERVICES_SHELL_PUBLIC_CPP_INTERFACE_PROVIDER_H_
OLDNEW
« no previous file with comments | « services/shell/public/cpp/connection.h ('k') | services/shell/public/cpp/lib/interface_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698