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

Unified Diff: net/base/file_stream_net_log_parameters.h

Issue 10539094: NetLogEventParameter to Callback refactoring 1, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unneeded line Created 8 years, 6 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
Index: net/base/file_stream_net_log_parameters.h
===================================================================
--- net/base/file_stream_net_log_parameters.h (revision 141407)
+++ net/base/file_stream_net_log_parameters.h (working copy)
@@ -10,30 +10,19 @@
#include <string>
+#include "net/base/file_stream_metrics.h"
#include "net/base/net_errors.h"
#include "net/base/net_log.h"
namespace net {
-// NetLog parameters when a FileStream has an error.
-class FileStreamErrorParameters : public net::NetLog::EventParameters {
- public:
- FileStreamErrorParameters(const std::string& operation,
- int os_error,
- net::Error net_error);
- virtual base::Value* ToValue() const OVERRIDE;
+// Creates NetLog parameters when a FileStream has an error.
+base::Value* NetLogFileStreamErrorCallback(
+ FileErrorSource source,
+ int os_error,
+ net::Error net_error,
+ NetLog::LogLevel log_level);
- protected:
- virtual ~FileStreamErrorParameters();
-
- private:
- std::string operation_;
- int os_error_;
- net::Error net_error_;
-
- DISALLOW_COPY_AND_ASSIGN(FileStreamErrorParameters);
-};
-
} // namespace net
#endif // NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_

Powered by Google App Engine
This is Rietveld 408576698