| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sandbox/win/src/crosscall_server.h" |
| 6 |
| 5 #include <string> | 7 #include <string> |
| 6 #include <vector> | 8 #include <vector> |
| 7 | 9 |
| 8 #include "sandbox/win/src/crosscall_server.h" | |
| 9 #include "sandbox/win/src/crosscall_params.h" | 10 #include "sandbox/win/src/crosscall_params.h" |
| 10 #include "sandbox/win/src/crosscall_client.h" | 11 #include "sandbox/win/src/crosscall_client.h" |
| 11 #include "base/logging.h" | 12 #include "base/logging.h" |
| 12 | 13 |
| 13 // This code performs the ipc message validation. Potential security flaws | 14 // This code performs the ipc message validation. Potential security flaws |
| 14 // on the ipc are likelier to be found in this code than in the rest of | 15 // on the ipc are likelier to be found in this code than in the rest of |
| 15 // the ipc code. | 16 // the ipc code. |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 std::vector<IPCCall>::iterator it = ipc_calls_.begin(); | 291 std::vector<IPCCall>::iterator it = ipc_calls_.begin(); |
| 291 for (; it != ipc_calls_.end(); ++it) { | 292 for (; it != ipc_calls_.end(); ++it) { |
| 292 if (it->params.Matches(ipc)) { | 293 if (it->params.Matches(ipc)) { |
| 293 *callback = it->callback; | 294 *callback = it->callback; |
| 294 return this; | 295 return this; |
| 295 } | 296 } |
| 296 } | 297 } |
| 297 return NULL; | 298 return NULL; |
| 298 } | 299 } |
| 299 | 300 |
| 301 Dispatcher::Dispatcher() { |
| 302 } |
| 303 |
| 304 Dispatcher::~Dispatcher() { |
| 305 } |
| 306 |
| 300 } // namespace sandbox | 307 } // namespace sandbox |
| OLD | NEW |