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

Unified Diff: net/url_request/url_request_netlog_params.cc

Issue 10399083: Make NetLog take in callbacks that return Values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix net-internals Created 8 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
« net/base/net_log.cc ('K') | « 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 137673)
+++ net/url_request/url_request_netlog_params.cc (working copy)
@@ -30,4 +30,15 @@
URLRequestStartEventParameters::~URLRequestStartEventParameters() {}
+bool StartEventLoadFlagsFromEventParameters(Value* event_params,
eroman 2012/05/22 22:08:06 |const Value*|
+ int* load_flags) {
+ DictionaryValue* dict;
+ if (!event_params->GetAsDictionary(&dict) ||
+ !dict->GetInteger("load_flags", load_flags)) {
+ *load_flags = 0;
+ return false;
+ }
+ return true;
+}
+
} // namespace net
« net/base/net_log.cc ('K') | « 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