#include "base/process/process_iterator.h"
#include <stddef.h>
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "base/process/internal_linux.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/threading/thread_restrictions.h"
namespace base {
class ScopedAllowBlockingForProc : public ScopedAllowBlocking { … };
namespace {
std::string GetProcStatsFieldAsString(
const std::vector<std::string>& proc_stats,
internal::ProcStatsFields field_num) { … }
bool GetProcCmdline(pid_t pid, std::vector<std::string>* proc_cmd_line_args) { … }
}
ProcessIterator::ProcessIterator(const ProcessFilter* filter)
: … { … }
ProcessIterator::~ProcessIterator() = default;
bool ProcessIterator::CheckForNextProcess() { … }
bool NamedProcessIterator::IncludeEntry() { … }
}