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 "services/http_server/http_server_impl.h" | 5 #include "services/http_server/http_server_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "mojo/public/cpp/application/application_impl.h" | 9 #include "mojo/public/cpp/application/application_impl.h" |
10 #include "mojo/public/cpp/system/data_pipe.h" | 10 #include "mojo/public/cpp/system/data_pipe.h" |
11 #include "mojo/services/http_server/public/cpp/http_server_util.h" | 11 #include "mojo/services/http_server/cpp/http_server_util.h" |
12 #include "services/http_server/connection.h" | 12 #include "services/http_server/connection.h" |
13 #include "services/http_server/http_server_factory_impl.h" | 13 #include "services/http_server/http_server_factory_impl.h" |
14 | 14 |
15 namespace http_server { | 15 namespace http_server { |
16 | 16 |
17 HttpServerImpl::HttpServerImpl(mojo::ApplicationImpl* app, | 17 HttpServerImpl::HttpServerImpl(mojo::ApplicationImpl* app, |
18 HttpServerFactoryImpl* factory, | 18 HttpServerFactoryImpl* factory, |
19 mojo::NetAddressPtr requested_local_address) | 19 mojo::NetAddressPtr requested_local_address) |
20 : factory_(factory), | 20 : factory_(factory), |
21 requested_local_address_(requested_local_address.Pass()), | 21 requested_local_address_(requested_local_address.Pass()), |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 HttpServerImpl::Handler::Handler(const std::string& pattern, | 161 HttpServerImpl::Handler::Handler(const std::string& pattern, |
162 HttpHandlerPtr http_handler) | 162 HttpHandlerPtr http_handler) |
163 : pattern(new RE2(pattern.c_str())), http_handler(http_handler.Pass()) { | 163 : pattern(new RE2(pattern.c_str())), http_handler(http_handler.Pass()) { |
164 } | 164 } |
165 | 165 |
166 HttpServerImpl::Handler::~Handler() { | 166 HttpServerImpl::Handler::~Handler() { |
167 } | 167 } |
168 | 168 |
169 } // namespace http_server | 169 } // namespace http_server |
OLD | NEW |