| 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 "mojo/spy/spy_server_impl.h" | 5 #include "mojo/spy/spy_server_impl.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/bindings/allocation_scope.h" | 7 #include "mojo/public/cpp/bindings/allocation_scope.h" |
| 8 #include "mojo/public/cpp/system/core.h" | 8 #include "mojo/public/cpp/system/core.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 items_[id] = new Item(id, Item::kServiceIntercept); | 87 items_[id] = new Item(id, Item::kServiceIntercept); |
| 88 client()->OnClientConnection( | 88 client()->OnClientConnection( |
| 89 url.possibly_invalid_spec(), id, spy_api::PEEK_MESSAGES); | 89 url.possibly_invalid_spec(), id, spy_api::PEEK_MESSAGES); |
| 90 } | 90 } |
| 91 | 91 |
| 92 ScopedMessagePipeHandle SpyServerImpl::ServerPipe() { | 92 ScopedMessagePipeHandle SpyServerImpl::ServerPipe() { |
| 93 return ScopedMessagePipeHandle(pipe_.handle1.Pass()).Pass(); | 93 return ScopedMessagePipeHandle(pipe_.handle1.Pass()).Pass(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace mojo | 96 } // namespace mojo |
| OLD | NEW |