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

Side by Side Diff: content/child/child_thread_impl.h

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CHILD_CHILD_THREAD_IMPL_H_ 5 #ifndef CONTENT_CHILD_CHILD_THREAD_IMPL_H_
6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 6 #define CONTENT_CHILD_CHILD_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 21 matching lines...) Expand all
32 namespace base { 32 namespace base {
33 class MessageLoop; 33 class MessageLoop;
34 } // namespace base 34 } // namespace base
35 35
36 namespace IPC { 36 namespace IPC {
37 class MessageFilter; 37 class MessageFilter;
38 class SyncChannel; 38 class SyncChannel;
39 class SyncMessageFilter; 39 class SyncMessageFilter;
40 } // namespace IPC 40 } // namespace IPC
41 41
42 namespace service_manager {
43 class Connection;
44 } // namespace service_manager
45
46 namespace mojo { 42 namespace mojo {
47 namespace edk { 43 namespace edk {
48 class ScopedIPCSupport; 44 class ScopedIPCSupport;
49 } // namespace edk 45 } // namespace edk
50 } // namespace mojo 46 } // namespace mojo
51 47
52 namespace content { 48 namespace content {
53 class ChildHistogramMessageFilter; 49 class ChildHistogramMessageFilter;
54 class ChildResourceMessageFilter; 50 class ChildResourceMessageFilter;
55 class FileSystemDispatcher; 51 class FileSystemDispatcher;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 mojom::AssociatedInterfaceAssociatedRequest request) override; 241 mojom::AssociatedInterfaceAssociatedRequest request) override;
246 242
247 // Called when a connection is received from another service. When that other 243 // Called when a connection is received from another service. When that other
248 // service is the browser process, stores the remote's info. 244 // service is the browser process, stores the remote's info.
249 void OnServiceConnect(const service_manager::ServiceInfo& local_info, 245 void OnServiceConnect(const service_manager::ServiceInfo& local_info,
250 const service_manager::ServiceInfo& remote_info); 246 const service_manager::ServiceInfo& remote_info);
251 247
252 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_; 248 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_;
253 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; 249 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_;
254 std::unique_ptr<ServiceManagerConnection> service_manager_connection_; 250 std::unique_ptr<ServiceManagerConnection> service_manager_connection_;
255 std::unique_ptr<service_manager::Connection> browser_connection_;
256 251
257 bool connected_to_browser_ = false; 252 bool connected_to_browser_ = false;
258 service_manager::ServiceInfo child_info_; 253 service_manager::ServiceInfo child_info_;
259 service_manager::ServiceInfo browser_info_; 254 service_manager::ServiceInfo browser_info_;
260 255
261 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_; 256 mojo::AssociatedBinding<mojom::RouteProvider> route_provider_binding_;
262 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t> 257 mojo::AssociatedBindingSet<mojom::AssociatedInterfaceProvider, int32_t>
263 associated_interface_provider_bindings_; 258 associated_interface_provider_bindings_;
264 mojom::RouteProviderAssociatedPtr remote_route_provider_; 259 mojom::RouteProviderAssociatedPtr remote_route_provider_;
265 260
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 333
339 private: 334 private:
340 struct Options options_; 335 struct Options options_;
341 336
342 DISALLOW_COPY_AND_ASSIGN(Builder); 337 DISALLOW_COPY_AND_ASSIGN(Builder);
343 }; 338 };
344 339
345 } // namespace content 340 } // namespace content
346 341
347 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_ 342 #endif // CONTENT_CHILD_CHILD_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl_browsertest.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698