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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_request_netlog_params.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_netlog_params.cc
===================================================================
--- net/url_request/url_request_netlog_params.cc (revision 0)
+++ net/url_request/url_request_netlog_params.cc (revision 0)
@@ -0,0 +1,20 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "net/url_request/url_request_netlog_params.h"
+
+#include "base/values.h"
+
+URLRequestStartEventParameters::URLRequestStartEventParameters(
+ const GURL& url, const std::string& method, int load_flags)
+ : url_(url), method_(method), load_flags_(load_flags) {}
+
+Value* URLRequestStartEventParameters::ToValue() const {
+ DictionaryValue* dict = new DictionaryValue();
+ dict->SetString(L"url", url_.possibly_invalid_spec());
+ dict->SetString(L"method", method_);
+ dict->SetInteger(L"load_flags", load_flags_);
+ return dict;
+}
+
Property changes on: net\url_request\url_request_netlog_params.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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