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

Side by Side Diff: net/base/file_stream_net_log_parameters.cc

Issue 9288084: Added Net logging to FileStream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified SetBoundNetLogSource() again. Created 8 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "net/base/file_stream_net_log_parameters.h"
6
7 #include "base/values.h"
8
9 namespace net {
10
11 FileStreamErrorParameters::FileStreamErrorParameters(
12 const std::string& operation, int os_error, net::Error net_error)
13 : operation_(operation), os_error_(os_error), net_error_(net_error) {
14 }
15
16 Value* FileStreamErrorParameters::ToValue() const {
17 DictionaryValue* dict = new DictionaryValue();
18
19 dict->SetString("operation", operation_);
20 dict->SetInteger("os_error", os_error_);
21 dict->SetInteger("net_error", net_error_);
22 dict->SetString("net_error_name", net::ErrorToString(net_error_));
mmenke 2012/02/01 16:25:52 Not needed. about:net-internals automatically loo
ahendrickson 2012/02/01 18:38:32 Removed.
23
24 return dict;
25 }
26
27 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698