cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / mojo / services / network / web_socket_factory_impl.cc
blob90895e9d3b0d0c2ea2db8319f9b1016308f7662f
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
3 // found in the LICENSE file.
5 #include "mojo/services/network/web_socket_factory_impl.h"
7 #include "mojo/services/network/web_socket_impl.h"
9 namespace mojo {
11 WebSocketFactoryImpl::WebSocketFactoryImpl(
12 NetworkContext* context,
13 scoped_ptr<AppRefCount> app_refcount,
14 InterfaceRequest<WebSocketFactory> request)
15 : context_(context),
16 app_refcount_(app_refcount.Pass()),
17 binding_(this, request.Pass()) {
20 WebSocketFactoryImpl::~WebSocketFactoryImpl() {
23 void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) {
24 new WebSocketImpl(context_, app_refcount_->Clone(), socket.Pass());
27 } // namespace mojo