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

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

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 shell { 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_ = GetProxy(&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());
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } else { 55 } else {
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 shell 65 } // namespace service_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698