chromium/third_party/crashpad/crashpad/snapshot/crashpad_types/image_annotation_reader.cc

// Copyright 2017 The Crashpad Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "snapshot/crashpad_types/image_annotation_reader.h"

#include <string.h>
#include <sys/types.h>

#include <algorithm>
#include <utility>

#include "base/logging.h"
#include "build/build_config.h"
#include "client/annotation.h"
#include "client/annotation_list.h"
#include "client/simple_string_dictionary.h"
#include "snapshot/snapshot_constants.h"
#if BUILDFLAG(IS_FUCHSIA)
#include "util/fuchsia/traits.h"
#else
#include "util/linux/traits.h"
#endif

namespace crashpad {

namespace process_types {

template <class Traits>
struct Annotation {};

template <class Traits>
struct AnnotationList {};

}  // namespace process_types

#if defined(ARCH_CPU_64_BITS)
#define NATIVE_TRAITS
#else
#define NATIVE_TRAITS
#endif  // ARCH_CPU_64_BITS

static_assert;

static_assert;

#undef NATIVE_TRAITS

ImageAnnotationReader::ImageAnnotationReader(const ProcessMemoryRange* memory)
    :{}

ImageAnnotationReader::~ImageAnnotationReader() = default;

bool ImageAnnotationReader::SimpleMap(
    VMAddress address,
    std::map<std::string, std::string>* annotations) const {}

bool ImageAnnotationReader::AnnotationsList(
    VMAddress address,
    std::vector<AnnotationSnapshot>* annotations) const {}

template <class Traits>
bool ImageAnnotationReader::ReadAnnotationList(
    VMAddress address,
    std::vector<AnnotationSnapshot>* annotations) const {}

}  // namespace crashpad