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

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

Issue 1539863002: Convert Pass()→std::move() in mojo/services/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing forward declare that was masked by pre-existing incorrect #include ordering. Created 5 years 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/udp_socket_impl.cc ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/url_loader_factory_impl.h" 5 #include "mojo/services/network/url_loader_factory_impl.h"
6 6
7 #include <utility>
8
7 #include "mojo/services/network/url_loader_impl.h" 9 #include "mojo/services/network/url_loader_impl.h"
8 10
9 namespace mojo { 11 namespace mojo {
10 12
11 URLLoaderFactoryImpl::URLLoaderFactoryImpl( 13 URLLoaderFactoryImpl::URLLoaderFactoryImpl(
12 NetworkContext* context, 14 NetworkContext* context,
13 scoped_ptr<mojo::AppRefCount> app_refcount, 15 scoped_ptr<mojo::AppRefCount> app_refcount,
14 InterfaceRequest<URLLoaderFactory> request) 16 InterfaceRequest<URLLoaderFactory> request)
15 : context_(context), 17 : context_(context),
16 app_refcount_(app_refcount.Pass()), 18 app_refcount_(std::move(app_refcount)),
17 binding_(this, request.Pass()) { 19 binding_(this, std::move(request)) {}
18 }
19 20
20 URLLoaderFactoryImpl::~URLLoaderFactoryImpl() { 21 URLLoaderFactoryImpl::~URLLoaderFactoryImpl() {
21 } 22 }
22 23
23 void URLLoaderFactoryImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) { 24 void URLLoaderFactoryImpl::CreateURLLoader(InterfaceRequest<URLLoader> loader) {
24 // TODO(darin): Plumb origin. Use for CORS. 25 // TODO(darin): Plumb origin. Use for CORS.
25 // TODO(beng): Figure out how to get origin through to here. 26 // TODO(beng): Figure out how to get origin through to here.
26 // The loader will delete itself when the pipe is closed, unless a request is 27 // The loader will delete itself when the pipe is closed, unless a request is
27 // in progress. In which case, the loader will delete itself when the request 28 // in progress. In which case, the loader will delete itself when the request
28 // is finished. 29 // is finished.
29 new URLLoaderImpl(context_, loader.Pass(), app_refcount_->Clone()); 30 new URLLoaderImpl(context_, std::move(loader), app_refcount_->Clone());
30 } 31 }
31 32
32 } // namespace mojo 33 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/network/udp_socket_impl.cc ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698