0
Files
src/content/browser/v8_snapshot_files.h
Victor Hugo Vianna Silva 0069272a31 Migrate absl variant.h and utility.h in content (part 2/2)
Since https://crrev.com/c/6330348, some utils in
third_party/abseil-cpp/absl/types/variant.h and
and third_party/abseil-cpp/absl/utility/utility.h are only aliases for
their std counterparts. This CL migrates code to use std:: directly.

Bug: 40242126
Change-Id: I3086a9337633c3e5857dc267daf55385f6d5456a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6368856
Reviewed-by: Dave Tapuska <dtapuska@chromium.org>
Owners-Override: Dave Tapuska <dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1434357}
2025-03-18 12:51:48 -07:00

33 lines
937 B
C++

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_V8_SNAPSHOT_FILES_H_
#define CONTENT_BROWSER_V8_SNAPSHOT_FILES_H_
#include <map>
#include <string>
#include <variant>
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
namespace base {
class CommandLine;
}
namespace content {
// Returns a mapping of V8 snapshot files to be preloaded for child processes
// that use V8. Note that this is defined on all platforms even though it may
// be empty or unused on some.
//
// This mapping can be used in `content::ChildProcessLauncherFileData` when
// constructing a ChildProcessLauncher.
std::map<std::string, std::variant<base::FilePath, base::ScopedFD>>
GetV8SnapshotFilesToPreload(base::CommandLine& process_command_line);
} // namespace content
#endif // CONTENT_BROWSER_V8_SNAPSHOT_FILES_H_