#include "components/sessions/core/serialized_navigation_entry.h"
#include <stddef.h>
#include <tuple>
#include <utility>
#include "base/pickle.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "components/sessions/core/serialized_navigation_driver.h"
namespace sessions {
const int kObsoleteReferrerPolicyNever = …;
SerializedNavigationEntry::SerializedNavigationEntry() { … }
SerializedNavigationEntry::SerializedNavigationEntry(
const SerializedNavigationEntry& other) = default;
SerializedNavigationEntry::SerializedNavigationEntry(
SerializedNavigationEntry&& other) noexcept { … }
SerializedNavigationEntry::~SerializedNavigationEntry() = default;
SerializedNavigationEntry& SerializedNavigationEntry::operator=(
const SerializedNavigationEntry& other) = default;
SerializedNavigationEntry& SerializedNavigationEntry::operator=(
SerializedNavigationEntry&& other) = default;
namespace {
void WriteStringToPickle(base::Pickle* pickle,
int* bytes_written,
int max_bytes,
const std::string& str) { … }
void WriteString16ToPickle(base::Pickle* pickle,
int* bytes_written,
int max_bytes,
const std::u16string& str) { … }
enum TypeMask { … };
}
void SerializedNavigationEntry::WriteToPickle(int max_size,
base::Pickle* pickle) const { … }
bool SerializedNavigationEntry::ReadFromPickle(base::PickleIterator* iterator) { … }
size_t SerializedNavigationEntry::EstimateMemoryUsage() const { … }
}