summaryrefslogtreecommitdiffstats
path: root/net/base/file_stream_net_log_parameters.h
blob: 09f96c8750e30de8999493ec336890467b33bae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2012 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.

// File stream error reporting.

#ifndef NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_
#define NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_

#include <string>

#include "net/base/file_stream_metrics.h"
#include "net/base/net_errors.h"
#include "net/base/net_log.h"

namespace net {

// 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);

}  // namespace net

#endif  // NET_BASE_FILE_STREAM_NET_LOG_PARAMETERS_H_