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

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

Issue 1290323002: HTMLViewer no longer connects to NetworkService interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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
« no previous file with comments | « mojo/services/network/web_socket_factory_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #include "mojo/services/network/web_socket_factory_impl.h"
6
7 #include "mojo/services/network/web_socket_impl.h"
8
9 namespace mojo {
10
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()) {
18 }
19
20 WebSocketFactoryImpl::~WebSocketFactoryImpl() {
21 }
22
23 void WebSocketFactoryImpl::CreateWebSocket(InterfaceRequest<WebSocket> socket) {
24 new WebSocketImpl(context_, app_refcount_->Clone(), socket.Pass());
25 }
26
27 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/web_socket_factory_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698