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

Unified Diff: content/child/child_thread_impl.cc

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/service_manager/service_manager_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 24f4608062a429cf0bad678c5496ed98b46afc95..8398e01a4b1ca00aa22692f8aca8c1b5abd6a513 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -267,7 +267,7 @@ class ChannelBootstrapFilter : public ConnectionFilter {
private:
// ConnectionFilter:
- void OnBindInterface(const service_manager::ServiceInfo& source_info,
+ void OnBindInterface(const service_manager::BindSourceInfo& source_info,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle* interface_pipe,
service_manager::Connector* connector) override {
@@ -631,14 +631,8 @@ service_manager::Connector* ChildThreadImpl::GetConnector() {
return service_manager_connection_->GetConnector();
}
-const service_manager::ServiceInfo&
- ChildThreadImpl::GetChildServiceInfo() const {
- DCHECK(IsConnectedToBrowser());
- return child_info_;
-}
-
-const service_manager::ServiceInfo&
- ChildThreadImpl::GetBrowserServiceInfo() const {
+const service_manager::BindSourceInfo& ChildThreadImpl::GetBrowserServiceInfo()
+ const {
DCHECK(IsConnectedToBrowser());
return browser_info_;
}
@@ -844,13 +838,11 @@ void ChildThreadImpl::GetAssociatedInterface(
}
void ChildThreadImpl::OnServiceConnect(
- const service_manager::ServiceInfo& local_info,
- const service_manager::ServiceInfo& remote_info) {
+ const service_manager::BindSourceInfo& remote_info) {
if (remote_info.identity.name() != mojom::kBrowserServiceName)
return;
DCHECK(!connected_to_browser_);
connected_to_browser_ = true;
- child_info_ = local_info;
browser_info_ = remote_info;
}
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/service_manager/service_manager_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698