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/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 void ShellConnection::AddRef() { | 229 void ShellConnection::AddRef() { |
230 ++ref_count_; | 230 ++ref_count_; |
231 } | 231 } |
232 | 232 |
233 void ShellConnection::Release() { | 233 void ShellConnection::Release() { |
234 if (!--ref_count_) | 234 if (!--ref_count_) |
235 Quit(); | 235 Quit(); |
236 } | 236 } |
237 | 237 |
238 shell::mojom::CapabilityFilterPtr CreatePermissiveCapabilityFilter() { | |
239 shell::mojom::CapabilityFilterPtr filter( | |
240 shell::mojom::CapabilityFilter::New()); | |
241 Array<String> all_interfaces; | |
242 all_interfaces.push_back("*"); | |
243 filter->filter.insert("*", std::move(all_interfaces)); | |
244 return filter; | |
245 } | |
246 | |
247 } // namespace mojo | 238 } // namespace mojo |
OLD | NEW |