#include "net/disk_cache/net_log_parameters.h"
#include <utility>
#include "base/check_op.h"
#include "base/values.h"
#include "net/base/net_errors.h"
#include "net/disk_cache/disk_cache.h"
#include "net/log/net_log_source.h"
#include "net/log/net_log_values.h"
namespace {
base::Value::Dict NetLogReadWriteDataParams(int index,
int offset,
int buf_len,
bool truncate) { … }
base::Value::Dict NetLogReadWriteCompleteParams(int bytes_copied) { … }
base::Value::Dict NetLogSparseOperationParams(int64_t offset, int buf_len) { … }
base::Value::Dict NetLogSparseReadWriteParams(const net::NetLogSource& source,
int child_len) { … }
}
namespace disk_cache {
base::Value::Dict CreateNetLogParametersEntryCreationParams(const Entry* entry,
bool created) { … }
void NetLogReadWriteData(const net::NetLogWithSource& net_log,
net::NetLogEventType type,
net::NetLogEventPhase phase,
int index,
int offset,
int buf_len,
bool truncate) { … }
void NetLogReadWriteComplete(const net::NetLogWithSource& net_log,
net::NetLogEventType type,
net::NetLogEventPhase phase,
int bytes_copied) { … }
void NetLogSparseOperation(const net::NetLogWithSource& net_log,
net::NetLogEventType type,
net::NetLogEventPhase phase,
int64_t offset,
int buf_len) { … }
void NetLogSparseReadWrite(const net::NetLogWithSource& net_log,
net::NetLogEventType type,
net::NetLogEventPhase phase,
const net::NetLogSource& source,
int child_len) { … }
base::Value::Dict CreateNetLogGetAvailableRangeResultParams(
disk_cache::RangeResult result) { … }
}