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

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

Issue 2108003: Add the URLRequest's method and load flags to the NetLog. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix test Created 10 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/url_request/url_request_netlog_params.h ('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')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/url_request/url_request_netlog_params.h"
6
7 #include "base/values.h"
8
9 URLRequestStartEventParameters::URLRequestStartEventParameters(
10 const GURL& url, const std::string& method, int load_flags)
11 : url_(url), method_(method), load_flags_(load_flags) {}
12
13 Value* URLRequestStartEventParameters::ToValue() const {
14 DictionaryValue* dict = new DictionaryValue();
15 dict->SetString(L"url", url_.possibly_invalid_spec());
16 dict->SetString(L"method", method_);
17 dict->SetInteger(L"load_flags", load_flags_);
18 return dict;
19 }
20
OLDNEW
« no previous file with comments | « net/url_request/url_request_netlog_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698