Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: mojo/services/network/web_socket_factory_impl.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 "mojo/services/network/web_socket_factory_impl.h" 5 #include "mojo/services/network/web_socket_factory_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "mojo/services/network/web_socket_impl.h" 9 #include "mojo/services/network/web_socket_impl.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 12
13 WebSocketFactoryImpl::WebSocketFactoryImpl( 13 WebSocketFactoryImpl::WebSocketFactoryImpl(
14 NetworkContext* context, 14 NetworkContext* context,
15 scoped_ptr<AppRefCount> app_refcount, 15 scoped_ptr<MessageLoopRef> app_refcount,
16 InterfaceRequest<WebSocketFactory> request) 16 InterfaceRequest<WebSocketFactory> request)
17 : context_(context), 17 : context_(context),
18 app_refcount_(std::move(app_refcount)), 18 app_refcount_(std::move(app_refcount)),
19 binding_(this, std::move(request)) {} 19 binding_(this, std::move(request)) {}
20 20
21 WebSocketFactoryImpl::~WebSocketFactoryImpl() { 21 WebSocketFactoryImpl::~WebSocketFactoryImpl() {
22 } 22 }
23 23
24 void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) { 24 void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) {
25 new WebSocketImpl(context_, app_refcount_->Clone(), std::move(socket)); 25 new WebSocketImpl(context_, app_refcount_->Clone(), std::move(socket));
26 } 26 }
27 27
28 } // namespace mojo 28 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/web_socket_factory_impl.h ('k') | mojo/services/network/web_socket_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698