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

Side by Side Diff: services/service_manager/public/cpp/lib/interface_provider.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 3 years, 12 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 #include "services/service_manager/public/cpp/interface_provider.h" 5 #include "services/service_manager/public/cpp/interface_provider.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h" 8 #include "mojo/public/cpp/bindings/strong_binding.h"
9 9
10 namespace service_manager { 10 namespace service_manager {
11 11
12 InterfaceProvider::InterfaceProvider() : weak_factory_(this) { 12 InterfaceProvider::InterfaceProvider() : weak_factory_(this) {
13 pending_request_ = GetProxy(&interface_provider_); 13 pending_request_ = MakeRequest(&interface_provider_);
14 } 14 }
15 15
16 InterfaceProvider::~InterfaceProvider() {} 16 InterfaceProvider::~InterfaceProvider() {}
17 17
18 void InterfaceProvider::Bind(mojom::InterfaceProviderPtr interface_provider) { 18 void InterfaceProvider::Bind(mojom::InterfaceProviderPtr interface_provider) {
19 DCHECK(pending_request_.is_pending()); 19 DCHECK(pending_request_.is_pending());
20 DCHECK(forward_callback_.is_null()); 20 DCHECK(forward_callback_.is_null());
21 mojo::FuseInterface(std::move(pending_request_), 21 mojo::FuseInterface(std::move(pending_request_),
22 interface_provider.PassInterface()); 22 interface_provider.PassInterface());
23 } 23 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 DCHECK(interface_provider_.is_bound()); 56 DCHECK(interface_provider_.is_bound());
57 interface_provider_->GetInterface(name, std::move(request_handle)); 57 interface_provider_->GetInterface(name, std::move(request_handle));
58 } 58 }
59 } 59 }
60 60
61 void InterfaceProvider::ClearBinders() { 61 void InterfaceProvider::ClearBinders() {
62 binders_.clear(); 62 binders_.clear();
63 } 63 }
64 64
65 } // namespace service_manager 65 } // namespace service_manager
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/lib/connector_impl.cc ('k') | services/service_manager/public/cpp/lib/service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698