chromium/third_party/blink/common/page_state/page_state.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/public/common/page_state/page_state.h"

#include <stddef.h>

#include <optional>
#include <string>

#include "base/files/file_path.h"
#include "base/strings/utf_string_conversions.h"
#include "services/network/public/cpp/resource_request_body.h"
#include "services/network/public/mojom/referrer_policy.mojom.h"
#include "third_party/blink/public/common/page_state/page_state_serialization.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

namespace blink {
namespace {

base::FilePath ToFilePath(const std::optional<std::u16string>& s) {}

void ToFilePathVector(const std::vector<std::optional<std::u16string>>& input,
                      std::vector<base::FilePath>* output) {}

PageState ToPageState(const ExplodedPageState& state) {}

void RecursivelyRemovePasswordData(ExplodedFrameState* state) {}

void RecursivelyRemoveScrollOffset(ExplodedFrameState* state) {}

void RecursivelyRemoveReferrer(ExplodedFrameState* state) {}

}  // namespace

// static
PageState PageState::CreateFromEncodedData(const std::string& data) {}

// static
PageState PageState::CreateFromURL(const GURL& url) {}

// static
PageState PageState::CreateForTesting(
    const GURL& url,
    bool body_contains_password_data,
    const char* optional_body_data,
    const base::FilePath* optional_body_file_path) {}

// static
PageState PageState::CreateForTestingWithSequenceNumbers(
    const GURL& url,
    int64_t item_sequence_number,
    int64_t document_sequence_number) {}

PageState::PageState() {}

bool PageState::IsValid() const {}

bool PageState::Equals(const PageState& other) const {}

const std::string& PageState::ToEncodedData() const {}

std::vector<base::FilePath> PageState::GetReferencedFiles() const {}

PageState PageState::RemovePasswordData() const {}

PageState PageState::RemoveScrollOffset() const {}

PageState PageState::RemoveReferrer() const {}

PageState::PageState(const std::string& data) :{}

void PageState::WriteIntoTrace(perfetto::TracedValue context) const {}

}  // namespace blink