OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <algorithm> | 5 #include <algorithm> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "mojo/application/public/cpp/application_delegate.h" | |
11 #include "mojo/application/public/cpp/application_impl.h" | |
12 #include "mojo/application/public/cpp/lib/service_registry.h" | |
13 #include "mojo/converters/network/network_type_converters.h" | 10 #include "mojo/converters/network/network_type_converters.h" |
14 #include "mojo/public/cpp/bindings/interface_ptr.h" | 11 #include "mojo/public/cpp/bindings/interface_ptr.h" |
15 #include "mojo/public/cpp/environment/logging.h" | 12 #include "mojo/public/cpp/environment/logging.h" |
| 13 #include "mojo/shell/public/cpp/application_delegate.h" |
| 14 #include "mojo/shell/public/cpp/application_impl.h" |
| 15 #include "mojo/shell/public/cpp/lib/service_registry.h" |
16 | 16 |
17 namespace mojo { | 17 namespace mojo { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 void DefaultTerminationClosure() { | 21 void DefaultTerminationClosure() { |
22 if (base::MessageLoop::current() && | 22 if (base::MessageLoop::current() && |
23 base::MessageLoop::current()->is_running()) | 23 base::MessageLoop::current()->is_running()) |
24 base::MessageLoop::current()->QuitWhenIdle(); | 24 base::MessageLoop::current()->QuitWhenIdle(); |
25 } | 25 } |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 CapabilityFilterPtr CreatePermissiveCapabilityFilter() { | 173 CapabilityFilterPtr CreatePermissiveCapabilityFilter() { |
174 CapabilityFilterPtr filter(CapabilityFilter::New()); | 174 CapabilityFilterPtr filter(CapabilityFilter::New()); |
175 Array<String> all_interfaces; | 175 Array<String> all_interfaces; |
176 all_interfaces.push_back("*"); | 176 all_interfaces.push_back("*"); |
177 filter->filter.insert("*", std::move(all_interfaces)); | 177 filter->filter.insert("*", std::move(all_interfaces)); |
178 return filter; | 178 return filter; |
179 } | 179 } |
180 | 180 |
181 } // namespace mojo | 181 } // namespace mojo |
OLD | NEW |