Include <functional> in headers that reference struct hash.
IWYU. This is more of https://crrev.com/c/1536740
[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
Change-Id: I113c9c35ebab9b4d9d6b461d7fb0880a8e53d1e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1536763
Reviewed-by: Lei Zhang <[email protected]>
Reviewed-by: Bill Budge <[email protected]>
Reviewed-by: Mounir Lamouri <[email protected]>
Commit-Queue: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#645623}
diff --git a/base/files/file_path.h b/base/files/file_path.h
index 1447482e..e99bdeb 100644
--- a/base/files/file_path.h
+++ b/base/files/file_path.h
@@ -104,6 +104,7 @@
#include <stddef.h>
+#include <functional>
#include <iosfwd>
#include <string>
#include <vector>
diff --git a/base/location.h b/base/location.h
index 14fe2fa6b..5fad653 100644
--- a/base/location.h
+++ b/base/location.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <cassert>
+#include <functional>
#include <string>
#include "base/base_export.h"
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
index fedf07b..7fb28a49 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <functional>
#include <map>
#include <set>
#include <string>
diff --git a/components/account_id/account_id.h b/components/account_id/account_id.h
index d673815..8f56e65 100644
--- a/components/account_id/account_id.h
+++ b/components/account_id/account_id.h
@@ -7,6 +7,7 @@
#include <stddef.h>
+#include <functional>
#include <ostream>
#include <string>
diff --git a/components/prefs/pref_value_store.h b/components/prefs/pref_value_store.h
index 3d5676eb..70a92bc 100644
--- a/components/prefs/pref_value_store.h
+++ b/components/prefs/pref_value_store.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_PREFS_PREF_VALUE_STORE_H_
#define COMPONENTS_PREFS_PREF_VALUE_STORE_H_
+#include <functional>
#include <map>
#include <memory>
#include <string>
diff --git a/components/safe_browsing/db/v4_protocol_manager_util.h b/components/safe_browsing/db/v4_protocol_manager_util.h
index d2b74ad..207ed7f 100644
--- a/components/safe_browsing/db/v4_protocol_manager_util.h
+++ b/components/safe_browsing/db/v4_protocol_manager_util.h
@@ -8,6 +8,7 @@
// A class that implements the stateless methods used by the GetHashUpdate and
// GetFullHash stubby calls made by Chrome using the SafeBrowsing V4 protocol.
+#include <functional>
#include <initializer_list>
#include <memory>
#include <ostream>
diff --git a/content/renderer/pepper/v8_var_converter.cc b/content/renderer/pepper/v8_var_converter.cc
index d2695a5..55a5dea 100644
--- a/content/renderer/pepper/v8_var_converter.cc
+++ b/content/renderer/pepper/v8_var_converter.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <functional>
#include <map>
#include <memory>
#include <string>
diff --git a/gpu/ipc/host/gpu_memory_buffer_support.h b/gpu/ipc/host/gpu_memory_buffer_support.h
index b35087a..1e6fc49 100644
--- a/gpu/ipc/host/gpu_memory_buffer_support.h
+++ b/gpu/ipc/host/gpu_memory_buffer_support.h
@@ -5,6 +5,7 @@
#ifndef GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_
#define GPU_IPC_HOST_GPU_MEMORY_BUFFER_SUPPORT_H_
+#include <functional>
#include <unordered_set>
#include <utility>
#include <vector>
diff --git a/media/blink/multibuffer.h b/media/blink/multibuffer.h
index 987326f..2a56d98 100644
--- a/media/blink/multibuffer.h
+++ b/media/blink/multibuffer.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <functional>
#include <limits>
#include <map>
#include <memory>
diff --git a/mojo/public/cpp/bindings/tests/rect_blink.h b/mojo/public/cpp/bindings/tests/rect_blink.h
index 7335989..3878191b 100644
--- a/mojo/public/cpp/bindings/tests/rect_blink.h
+++ b/mojo/public/cpp/bindings/tests/rect_blink.h
@@ -5,6 +5,8 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_TESTS_RECT_BLINK_H_
#define MOJO_PUBLIC_CPP_BINDINGS_TESTS_RECT_BLINK_H_
+#include <functional>
+
#include "base/logging.h"
namespace mojo {
diff --git a/mojo/public/cpp/bindings/tests/rect_chromium.h b/mojo/public/cpp/bindings/tests/rect_chromium.h
index d2e0a3e..4092668 100644
--- a/mojo/public/cpp/bindings/tests/rect_chromium.h
+++ b/mojo/public/cpp/bindings/tests/rect_chromium.h
@@ -5,6 +5,8 @@
#ifndef MOJO_PUBLIC_CPP_BINDINGS_TESTS_RECT_CHROMIUM_H_
#define MOJO_PUBLIC_CPP_BINDINGS_TESTS_RECT_CHROMIUM_H_
+#include <functional>
+
#include "base/logging.h"
namespace mojo {
diff --git a/services/resource_coordinator/public/cpp/coordination_unit_id.h b/services/resource_coordinator/public/cpp/coordination_unit_id.h
index a94a2a1..77b39c9 100644
--- a/services/resource_coordinator/public/cpp/coordination_unit_id.h
+++ b/services/resource_coordinator/public/cpp/coordination_unit_id.h
@@ -1,9 +1,11 @@
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
#ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_ID_H_
#define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_ID_H_
+#include <functional>
#include <string>
#include <tuple>
diff --git a/ui/gfx/generic_shared_memory_id.h b/ui/gfx/generic_shared_memory_id.h
index 1db8acd..bab79c9 100644
--- a/ui/gfx/generic_shared_memory_id.h
+++ b/ui/gfx/generic_shared_memory_id.h
@@ -8,7 +8,8 @@
#include <stddef.h>
#include <stdint.h>
-#include "base/hash.h"
+#include <functional>
+
#include "base/trace_event/memory_allocator_dump.h"
#include "ui/gfx/gfx_export.h"