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

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

Issue 3013048: Convert src/net to use std::string/char* for DictionaryValue keys. (Closed)
Patch Set: fix for windows Created 10 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 | « net/spdy/spdy_session.cc ('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
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/values.h" 7 #include "base/values.h"
8 8
9 URLRequestStartEventParameters::URLRequestStartEventParameters( 9 URLRequestStartEventParameters::URLRequestStartEventParameters(
10 const GURL& url, 10 const GURL& url,
11 const std::string& method, 11 const std::string& method,
12 int load_flags, 12 int load_flags,
13 net::RequestPriority priority) 13 net::RequestPriority priority)
14 : url_(url), 14 : url_(url),
15 method_(method), 15 method_(method),
16 load_flags_(load_flags), 16 load_flags_(load_flags),
17 priority_(priority) { 17 priority_(priority) {
18 } 18 }
19 19
20 Value* URLRequestStartEventParameters::ToValue() const { 20 Value* URLRequestStartEventParameters::ToValue() const {
21 DictionaryValue* dict = new DictionaryValue(); 21 DictionaryValue* dict = new DictionaryValue();
22 dict->SetString(L"url", url_.possibly_invalid_spec()); 22 dict->SetString("url", url_.possibly_invalid_spec());
23 dict->SetString(L"method", method_); 23 dict->SetString("method", method_);
24 dict->SetInteger(L"load_flags", load_flags_); 24 dict->SetInteger("load_flags", load_flags_);
25 dict->SetInteger(L"priority", static_cast<int>(priority_)); 25 dict->SetInteger("priority", static_cast<int>(priority_));
26 return dict; 26 return dict;
27 } 27 }
OLDNEW
« no previous file with comments | « net/spdy/spdy_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698