blob: f5be1fb63db0048dadf96cc84669930ac6aba464 [file] [log] [blame]
// Copyright 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <libwebserv/request_handler_callback.h>
namespace libwebserv {
RequestHandlerCallback::RequestHandlerCallback(
const base::Callback<HandlerSignature>& callback) : callback_(callback) {
}
void RequestHandlerCallback::HandleRequest(scoped_ptr<Request> request,
scoped_ptr<Response> response) {
callback_.Run(request.Pass(), response.Pass());
}
} // namespace libwebserv