| 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 "services/http_server/http_server_factory_impl.h" | 5 #include "services/http_server/http_server_factory_impl.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "mojo/services/http_server/public/interfaces/http_server.mojom.h" | 8 #include "mojo/services/http_server/interfaces/http_server.mojom.h" |
| 9 #include "services/http_server/http_server_impl.h" | 9 #include "services/http_server/http_server_impl.h" |
| 10 | 10 |
| 11 namespace http_server { | 11 namespace http_server { |
| 12 | 12 |
| 13 HttpServerFactoryImpl::HttpServerFactoryImpl(mojo::ApplicationImpl* app) { | 13 HttpServerFactoryImpl::HttpServerFactoryImpl(mojo::ApplicationImpl* app) { |
| 14 app_ = app; | 14 app_ = app; |
| 15 } | 15 } |
| 16 | 16 |
| 17 HttpServerFactoryImpl::~HttpServerFactoryImpl() { | 17 HttpServerFactoryImpl::~HttpServerFactoryImpl() { |
| 18 // Free the http servers. | 18 // Free the http servers. |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 port_indicated_servers_[key]->AddBinding(server_request.Pass()); | 82 port_indicated_servers_[key]->AddBinding(server_request.Pass()); |
| 83 } else { | 83 } else { |
| 84 HttpServerImpl* server = | 84 HttpServerImpl* server = |
| 85 new HttpServerImpl(app_, this, local_address.Pass()); | 85 new HttpServerImpl(app_, this, local_address.Pass()); |
| 86 server->AddBinding(server_request.Pass()); | 86 server->AddBinding(server_request.Pass()); |
| 87 port_any_servers_.insert(server); | 87 port_any_servers_.insert(server); |
| 88 } | 88 } |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace http_server | 91 } // namespace http_server |
| OLD | NEW |