blob: 766c0ea2c7d3a098351198e562bc2d5e19063c8f [file] [log] [blame]
// Copyright 2016 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.
#ifndef CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_
#define CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_
#include <stdint.h>
#include <string>
#include "base/time/time.h"
#include "content/common/content_export.h"
namespace content {
struct CONTENT_EXPORT ResourceRequestCompletionStatus {
ResourceRequestCompletionStatus();
ResourceRequestCompletionStatus(
const ResourceRequestCompletionStatus& status);
~ResourceRequestCompletionStatus();
// The error code.
int error_code = 0;
// Was ignored by the request handler.
bool was_ignored_by_handler = false;
// A copy of the data requested exists in the cache.
bool exists_in_cache = false;
// Serialized security info; see content/common/ssl_status_serialization.h.
std::string security_info;
// Time the request completed.
base::TimeTicks completion_time;
// Total amount of data received from the network.
int64_t encoded_data_length = 0;
};
} // namespace content
#endif // CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_