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

Side by Side Diff: content/public/common/connection_filter.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 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 CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
6 #define CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_ 6 #define CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "mojo/public/cpp/system/message_pipe.h" 9 #include "mojo/public/cpp/system/message_pipe.h"
10 10
11 namespace service_manager { 11 namespace service_manager {
12 class Connector; 12 class Connector;
13 struct ServiceInfo; 13 struct BindSourceInfo;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 // TODO(beng): Rename to InterfaceBinder? 18 // TODO(beng): Rename to InterfaceBinder?
19 // See ServiceManagerConnection::AddConnectionFilter(). 19 // See ServiceManagerConnection::AddConnectionFilter().
20 class CONTENT_EXPORT ConnectionFilter { 20 class CONTENT_EXPORT ConnectionFilter {
21 public: 21 public:
22 virtual ~ConnectionFilter() {} 22 virtual ~ConnectionFilter() {}
23 23
24 // Provides the ConnectionFilter with the option of binding an interface 24 // Provides the ConnectionFilter with the option of binding an interface
25 // request from a remote service. The interface request is in 25 // request from a remote service. The interface request is in
26 // |interface_pipe|, which is taken by the binding action. If the interface 26 // |interface_pipe|, which is taken by the binding action. If the interface
27 // request is bound, subsequent ConnectionFilters are not consulted. 27 // request is bound, subsequent ConnectionFilters are not consulted.
28 virtual void OnBindInterface(const service_manager::ServiceInfo& source_info, 28 virtual void OnBindInterface(
29 const std::string& interface_name, 29 const service_manager::BindSourceInfo& source_info,
30 mojo::ScopedMessagePipeHandle* interface_pipe, 30 const std::string& interface_name,
31 service_manager::Connector* connector) = 0; 31 mojo::ScopedMessagePipeHandle* interface_pipe,
32 service_manager::Connector* connector) = 0;
32 }; 33 };
33 34
34 } // namespace content 35 } // namespace content
35 36
36 #endif // CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_ 37 #endif // CONTENT_PUBLIC_COMMON_CONNECTION_FILTER_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/common/service_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698