| Index: mojo/services/network/web_socket_factory_impl.cc
|
| diff --git a/mojo/services/network/web_socket_factory_impl.cc b/mojo/services/network/web_socket_factory_impl.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..90895e9d3b0d0c2ea2db8319f9b1016308f7662f
|
| --- /dev/null
|
| +++ b/mojo/services/network/web_socket_factory_impl.cc
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 The Chromium 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 "mojo/services/network/web_socket_factory_impl.h"
|
| +
|
| +#include "mojo/services/network/web_socket_impl.h"
|
| +
|
| +namespace mojo {
|
| +
|
| +WebSocketFactoryImpl::WebSocketFactoryImpl(
|
| + NetworkContext* context,
|
| + scoped_ptr<AppRefCount> app_refcount,
|
| + InterfaceRequest<WebSocketFactory> request)
|
| + : context_(context),
|
| + app_refcount_(app_refcount.Pass()),
|
| + binding_(this, request.Pass()) {
|
| +}
|
| +
|
| +WebSocketFactoryImpl::~WebSocketFactoryImpl() {
|
| +}
|
| +
|
| +void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) {
|
| + new WebSocketImpl(context_, app_refcount_->Clone(), socket.Pass());
|
| +}
|
| +
|
| +} // namespace mojo
|
|
|