// 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 #include "mojo/services/network/web_socket_impl.h" namespace mojo { WebSocketFactoryImpl::WebSocketFactoryImpl( NetworkContext* context, scoped_ptr app_refcount, InterfaceRequest request) : context_(context), app_refcount_(std::move(app_refcount)), binding_(this, std::move(request)) {} WebSocketFactoryImpl::~WebSocketFactoryImpl() { } void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest socket) { new WebSocketImpl(context_, app_refcount_->Clone(), std::move(socket)); } } // namespace mojo