OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/public/cpp/bindings/lib/multiplex_router.h" | 5 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/macros.h" |
10 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
11 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
12 #include "mojo/public/cpp/bindings/associated_group.h" | 15 #include "mojo/public/cpp/bindings/associated_group.h" |
13 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" | 16 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" |
14 | 17 |
15 namespace mojo { | 18 namespace mojo { |
16 namespace internal { | 19 namespace internal { |
17 | 20 |
18 // InterfaceEndpoint stores the information of an interface endpoint registered | 21 // InterfaceEndpoint stores the information of an interface endpoint registered |
19 // with the router. Always accessed under the router's lock. | 22 // with the router. Always accessed under the router's lock. |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 } | 529 } |
527 | 530 |
528 void MultiplexRouter::RaiseErrorInNonTestingMode() { | 531 void MultiplexRouter::RaiseErrorInNonTestingMode() { |
529 lock_.AssertAcquired(); | 532 lock_.AssertAcquired(); |
530 if (!testing_mode_) | 533 if (!testing_mode_) |
531 RaiseError(); | 534 RaiseError(); |
532 } | 535 } |
533 | 536 |
534 } // namespace internal | 537 } // namespace internal |
535 } // namespace mojo | 538 } // namespace mojo |
OLD | NEW |