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/shell/application_instance.h" | 5 #include "mojo/shell/application_instance.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/atomic_sequence_num.h" | 11 #include "base/atomic_sequence_num.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "mojo/application/public/interfaces/content_handler.mojom.h" | |
15 #include "mojo/common/common_type_converters.h" | 14 #include "mojo/common/common_type_converters.h" |
16 #include "mojo/common/url_type_converters.h" | 15 #include "mojo/common/url_type_converters.h" |
17 #include "mojo/shell/application_manager.h" | 16 #include "mojo/shell/application_manager.h" |
| 17 #include "mojo/shell/public/interfaces/content_handler.mojom.h" |
18 | 18 |
19 namespace mojo { | 19 namespace mojo { |
20 namespace shell { | 20 namespace shell { |
21 namespace { | 21 namespace { |
22 | 22 |
23 base::StaticAtomicSequenceNumber g_instance_id; | 23 base::StaticAtomicSequenceNumber g_instance_id; |
24 | 24 |
25 const int kInvalidInstanceId = -1; | 25 const int kInvalidInstanceId = -1; |
26 | 26 |
27 } // namespace | 27 } // namespace |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 193 |
194 queue_requests_ = false; | 194 queue_requests_ = false; |
195 for (auto request : queued_client_requests_) | 195 for (auto request : queued_client_requests_) |
196 CallAcceptConnection(make_scoped_ptr(request)); | 196 CallAcceptConnection(make_scoped_ptr(request)); |
197 | 197 |
198 queued_client_requests_.clear(); | 198 queued_client_requests_.clear(); |
199 } | 199 } |
200 | 200 |
201 } // namespace shell | 201 } // namespace shell |
202 } // namespace mojo | 202 } // namespace mojo |
OLD | NEW |