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

Side by Side Diff: services/service_manager/public/cpp/binder_registry.h

Issue 2608163003: Change single-interface mojo bindings to use SequencedTaskRunner. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « services/file/file_service.cc ('k') | services/service_manager/public/cpp/interface_registry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "mojo/public/cpp/system/message_pipe.h" 14 #include "mojo/public/cpp/system/message_pipe.h"
15 #include "services/service_manager/public/cpp/interface_factory.h" 15 #include "services/service_manager/public/cpp/interface_factory.h"
16 #include "services/service_manager/public/cpp/lib/callback_binder.h" 16 #include "services/service_manager/public/cpp/lib/callback_binder.h"
17 #include "services/service_manager/public/cpp/lib/interface_factory_binder.h" 17 #include "services/service_manager/public/cpp/lib/interface_factory_binder.h"
18 18
19 namespace base {
20 class SingleThreadTaskRunner;
21 }
22
19 namespace service_manager { 23 namespace service_manager {
20 24
21 class Identity; 25 class Identity;
22 class InterfaceBinder; 26 class InterfaceBinder;
23 27
24 class BinderRegistry { 28 class BinderRegistry {
25 public: 29 public:
26 using Binder = base::Callback<void(const std::string&, 30 using Binder = base::Callback<void(const std::string&,
27 mojo::ScopedMessagePipeHandle)>; 31 mojo::ScopedMessagePipeHandle)>;
28 32
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 86
83 InterfaceNameToBinderMap binders_; 87 InterfaceNameToBinderMap binders_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(BinderRegistry); 89 DISALLOW_COPY_AND_ASSIGN(BinderRegistry);
86 }; 90 };
87 91
88 92
89 } // namespace service_manager 93 } // namespace service_manager
90 94
91 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_ 95 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_BINDER_REGISTRY_H_
OLDNEW
« no previous file with comments | « services/file/file_service.cc ('k') | services/service_manager/public/cpp/interface_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698