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

Side by Side Diff: net/url_request/url_request_netlog_params.cc

Issue 1545233002: Convert Pass()→std::move() in //net (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_test_util.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/url_request/url_request_netlog_params.h" 5 #include "net/url_request/url_request_netlog_params.h"
6 6
7 #include <utility>
8
7 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
8 #include "base/values.h" 10 #include "base/values.h"
9 #include "url/gurl.h" 11 #include "url/gurl.h"
10 12
11 namespace net { 13 namespace net {
12 14
13 scoped_ptr<base::Value> NetLogURLRequestStartCallback( 15 scoped_ptr<base::Value> NetLogURLRequestStartCallback(
14 const GURL* url, 16 const GURL* url,
15 const std::string* method, 17 const std::string* method,
16 int load_flags, 18 int load_flags,
17 RequestPriority priority, 19 RequestPriority priority,
18 int64_t upload_id, 20 int64_t upload_id,
19 NetLogCaptureMode /* capture_mode */) { 21 NetLogCaptureMode /* capture_mode */) {
20 scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); 22 scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
21 dict->SetString("url", url->possibly_invalid_spec()); 23 dict->SetString("url", url->possibly_invalid_spec());
22 dict->SetString("method", *method); 24 dict->SetString("method", *method);
23 dict->SetInteger("load_flags", load_flags); 25 dict->SetInteger("load_flags", load_flags);
24 dict->SetString("priority", RequestPriorityToString(priority)); 26 dict->SetString("priority", RequestPriorityToString(priority));
25 if (upload_id > -1) 27 if (upload_id > -1)
26 dict->SetString("upload_id", base::Int64ToString(upload_id)); 28 dict->SetString("upload_id", base::Int64ToString(upload_id));
27 return dict.Pass(); 29 return std::move(dict);
28 } 30 }
29 31
30 } // namespace net 32 } // namespace net
OLDNEW
« no previous file with comments | « net/url_request/url_request_job.cc ('k') | net/url_request/url_request_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698