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

Side by Side Diff: content/network/network_service_url_loader_factory_impl.cc

Issue 2824193002: Enable use_once_callback for //content/common/*.mojom (Closed)
Patch Set: rebase Created 3 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 "content/network/network_service_url_loader_factory_impl.h" 5 #include "content/network/network_service_url_loader_factory_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/resource_request.h" 8 #include "content/common/resource_request.h"
9 #include "content/network/url_loader_impl.h" 9 #include "content/network/url_loader_impl.h"
10 10
(...skipping 14 matching lines...) Expand all
25 const ResourceRequest& url_request, 25 const ResourceRequest& url_request,
26 mojom::URLLoaderClientPtr client) { 26 mojom::URLLoaderClientPtr client) {
27 new URLLoaderImpl(context_, std::move(request), options, url_request, 27 new URLLoaderImpl(context_, std::move(request), options, url_request,
28 std::move(client)); 28 std::move(client));
29 } 29 }
30 30
31 void NetworkServiceURLLoaderFactoryImpl::SyncLoad( 31 void NetworkServiceURLLoaderFactoryImpl::SyncLoad(
32 int32_t routing_id, 32 int32_t routing_id,
33 int32_t request_id, 33 int32_t request_id,
34 const ResourceRequest& url_request, 34 const ResourceRequest& url_request,
35 const SyncLoadCallback& callback) { 35 SyncLoadCallback callback) {
36 NOTIMPLEMENTED(); 36 NOTIMPLEMENTED();
37 37
38 SyncLoadResult result; 38 SyncLoadResult result;
39 result.error_code = net::ERR_NOT_IMPLEMENTED; 39 result.error_code = net::ERR_NOT_IMPLEMENTED;
40 callback.Run(result); 40 std::move(callback).Run(result);
41 } 41 }
42 42
43 } // namespace content 43 } // namespace content
OLDNEW
« no previous file with comments | « content/network/network_service_url_loader_factory_impl.h ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698