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

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

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
(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/url_loader_factory_impl.h"
6
7 #include <utility>
8
9 #include "mojo/services/network/url_loader_impl.h"
10
11 namespace mojo {
12
13 URLLoaderFactoryImpl::URLLoaderFactoryImpl(
14 NetworkContext* context,
15 scoped_ptr<mojo::MessageLoopRef> app_refcount,
16 InterfaceRequest<URLLoaderFactory> request)
17 : context_(context),
18 app_refcount_(std::move(app_refcount)),
19 binding_(this, std::move(request)) {}
20
21 URLLoaderFactoryImpl::~URLLoaderFactoryImpl() {
22 }
23
24 void URLLoaderFactoryImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) {
25 // TODO(darin): Plumb origin. Use for CORS.
26 // TODO(beng): Figure out how to get origin through to here.
27 // The loader will delete itself when the pipe is closed, unless a request is
28 // in progress. In which case, the loader will delete itself when the request
29 // is finished.
30 new URLLoaderImpl(context_, std::move(loader), app_refcount_->Clone());
31 }
32
33 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/url_loader_factory_impl.h ('k') | mojo/services/network/url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698