chromium/third_party/breakpad/breakpad/src/google_breakpad/processor/proc_maps_linux.h

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

#ifndef BASE_DEBUG_PROC_MAPS_LINUX_H_
#define BASE_DEBUG_PROC_MAPS_LINUX_H_

#include <string>
#include <vector>

#include "common/using_std_string.h"
#include "google_breakpad/common/breakpad_types.h"

namespace google_breakpad {

// Describes a region of mapped memory and the path of the file mapped.
struct MappedMemoryRegion {};

// Parses /proc/<pid>/maps input data and stores in |regions|. Returns true
// and updates |regions| if and only if all of |input| was successfully parsed.
bool ParseProcMaps(const string& input,
                   std::vector<MappedMemoryRegion>* regions);

}  // namespace google_breakpad

#endif  // BASE_DEBUG_PROC_MAPS_LINUX_H_