0

IWYU for base/threading/platform_thread.h.

Files that reference base::PlatformThread should include the header. Add
it for some files that will be affected by an upcoming //base header
change.

Change-Id: Icff2887e84161fd7a2916cf2563024ad2bf9d140
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3366225
Reviewed-by: Kyle Charbonneau <kylechar@chromium.org>
Owners-Override: Kyle Charbonneau <kylechar@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#956286}
This commit is contained in:
Lei Zhang
2022-01-06 23:27:31 +00:00
committed by Chromium LUCI CQ
parent 0aba7b925f
commit 275b0b8a00
14 changed files with 21 additions and 3 deletions
base/message_loop
chromeos/memory/userspace_swap
components
content/browser/renderer_host
gpu/command_buffer/service
media
mojo/public/cpp/base
rlz/lib
ui/ozone/platform/drm/host

@ -13,6 +13,7 @@
#include "base/numerics/safe_conversions.h"
#include "base/posix/eintr_wrapper.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
namespace base {

@ -11,6 +11,7 @@
#include "base/files/file_descriptor_watcher_posix.h"
#include "base/files/scoped_file.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
#include "chromeos/chromeos_export.h"
struct uffd_msg;

@ -15,6 +15,7 @@
#include "base/files/memory_mapped_file.h"
#include "base/files/scoped_temp_dir.h"
#include "base/metrics/persistent_memory_allocator.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"

@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/search_engines/template_url_service.h"
#include <stddef.h>
#include <memory>
#include "components/search_engines/template_url_service.h"
#include "base/threading/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
class TemplateURLServiceUnitTest : public testing::Test {

@ -14,6 +14,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_timeouts.h"
#include "base/threading/platform_thread.h"
#include "base/values.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"

@ -6,6 +6,7 @@
#define COMPONENTS_VIZ_SERVICE_MAIN_VIZ_COMPOSITOR_THREAD_RUNNER_H_
#include "base/callback.h"
#include "base/threading/platform_thread.h"
#include "services/viz/privileged/mojom/viz_main.mojom.h"
namespace base {

@ -14,6 +14,7 @@
#include "base/memory/raw_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/task/sequenced_task_runner_helpers.h"
#include "base/threading/platform_thread.h"
#include "build/build_config.h"
#include "content/common/render_message_filter.mojom.h"
#include "content/public/browser/browser_associated_interface.h"

@ -11,6 +11,7 @@
#include "base/hash/hash.h"
#include "base/memory/memory_pressure_listener.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
#include "base/threading/thread_checker.h"
#include "base/trace_event/memory_dump_provider.h"
#include "gpu/raster_export.h"

@ -25,6 +25,7 @@
#include "base/strings/stringprintf.h"
#include "base/strings/sys_string_conversions.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "base/win/scoped_co_mem.h"
#include "base/win/windows_version.h"
#include "media/capture/mojom/image_capture_types.h"

@ -28,6 +28,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#if defined(OS_MAC)
#include "base/threading/platform_thread.h"
#include "media/cast/sender/h264_vt_encoder.h"
#endif

@ -4,6 +4,9 @@
#include "mojo/public/cpp/base/thread_priority_mojom_traits.h"
#include "base/notreached.h"
#include "base/threading/platform_thread.h"
namespace mojo {
// static
@ -45,4 +48,4 @@ bool EnumTraits<mojo_base::mojom::ThreadPriority, base::ThreadPriority>::
return false;
}
} // namespace mojo
} // namespace mojo

@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "mojo/public/cpp/base/thread_priority_mojom_traits.h"
#include "base/threading/platform_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace mojo_base {
@ -28,4 +30,4 @@ TEST(ThreadPriorityTest, ThreadPriority) {
}
} // namespace thread_priority_unittest
} // namespace mojo_base
} // namespace mojo_base

@ -13,6 +13,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/syslog_logging.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"

@ -6,6 +6,7 @@
#include <utility>
#include "base/threading/platform_thread.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "ui/ozone/public/gpu_platform_support_host.h"