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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc 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_registry.h" 5 #include "services/service_manager/public/cpp/interface_registry.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "mojo/public/cpp/bindings/message.h" 10 #include "mojo/public/cpp/bindings/message.h"
10 #include "services/service_manager/public/cpp/connection.h" 11 #include "services/service_manager/public/cpp/connection.h"
11 12
12 namespace service_manager { 13 namespace service_manager {
13 namespace { 14 namespace {
14 15
15 // Returns the set of capabilities required from the target. 16 // Returns the set of capabilities required from the target.
16 CapabilitySet GetRequestedCapabilities(const InterfaceProviderSpec& source_spec, 17 CapabilitySet GetRequestedCapabilities(const InterfaceProviderSpec& source_spec,
17 const Identity& target) { 18 const Identity& target) {
18 CapabilitySet capabilities; 19 CapabilitySet capabilities;
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 exposed_interfaces_.size() == 1 && exposed_interfaces_.count("*") == 1; 250 exposed_interfaces_.size() == 1 && exposed_interfaces_.count("*") == 1;
250 } 251 }
251 252
252 void InterfaceRegistry::OnConnectionError() { 253 void InterfaceRegistry::OnConnectionError() {
253 std::list<base::Closure> closures = connection_lost_closures_; 254 std::list<base::Closure> closures = connection_lost_closures_;
254 for (const auto& closure : closures) 255 for (const auto& closure : closures)
255 closure.Run(); 256 closure.Run();
256 } 257 }
257 258
258 } // namespace service_manager 259 } // namespace service_manager
OLDNEW
« no previous file with comments | « services/preferences/public/cpp/pref_observer_store.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