Commit 0ac569f7 authored by Glen Robertson's avatar Glen Robertson Committed by Chromium LUCI CQ

Remove or forward-declare unnecessary headers from profile.h

Revealed some other classes that were incorrectly missing those headers,
so fixed those too.
In prep for moving profile to a separate GN target.

Bug: 1149277
Change-Id: I2c42ecefbd5183e74b8e96c250d0d69b282388ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2632545
Auto-Submit: Glen Robertson <glenrob@chromium.org>
Commit-Queue: David Roger <droger@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#844478}
parent 46009070
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#include <memory> #include <memory>
#include "base/files/file_path.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
#include "chrome/browser/permissions/last_tab_standing_tracker.h" #include "chrome/browser/permissions/last_tab_standing_tracker.h"
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
#include "url/gurl.h"
LastTabStandingTracker::LastTabStandingTracker() = default; LastTabStandingTracker::LastTabStandingTracker() = default;
......
...@@ -6,8 +6,10 @@ ...@@ -6,8 +6,10 @@
#include <string> #include <string>
#include "base/files/file_path.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"
#include "base/time/time.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "build/chromeos_buildflags.h" #include "build/chromeos_buildflags.h"
#include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h" #include "chrome/browser/browsing_data/chrome_browsing_data_remover_constants.h"
......
...@@ -11,16 +11,11 @@ ...@@ -11,16 +11,11 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "base/files/file_path.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "base/observer_list.h" #include "base/observer_list.h"
#include "base/time/time.h"
#include "build/build_config.h" #include "build/build_config.h"
#include "build/chromeos_buildflags.h" #include "build/chromeos_buildflags.h"
#include "content/public/browser/browser_context.h" #include "content/public/browser/browser_context.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/network/public/mojom/network_context.mojom-forward.h"
#include "url/gurl.h"
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
#include "base/android/scoped_java_ref.h" #include "base/android/scoped_java_ref.h"
...@@ -31,6 +26,7 @@ class ChromeZoomLevelPrefs; ...@@ -31,6 +26,7 @@ class ChromeZoomLevelPrefs;
#endif #endif
class ExtensionSpecialStoragePolicy; class ExtensionSpecialStoragePolicy;
class GURL;
class PrefService; class PrefService;
class PrefStore; class PrefStore;
class ProfileDestroyer; class ProfileDestroyer;
...@@ -38,7 +34,9 @@ class ProfileKey; ...@@ -38,7 +34,9 @@ class ProfileKey;
class TestingProfile; class TestingProfile;
namespace base { namespace base {
class FilePath;
class SequencedTaskRunner; class SequencedTaskRunner;
class Time;
} }
namespace content { namespace content {
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include <windows.h> #include <windows.h>
#include "base/files/file_path.h"
#include "base/numerics/safe_conversions.h" #include "base/numerics/safe_conversions.h"
#include "base/win/registry.h" #include "base/win/registry.h"
#include "chrome/browser/profiles/profile.h" #include "chrome/browser/profiles/profile.h"
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "base/callback.h" #include "base/callback.h"
#include "base/compiler_specific.h" #include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/task/cancelable_task_tracker.h" #include "base/task/cancelable_task_tracker.h"
...@@ -25,7 +26,6 @@ class Browser; ...@@ -25,7 +26,6 @@ class Browser;
namespace base { namespace base {
class DictionaryValue; class DictionaryValue;
class FilePath;
class ListValue; class ListValue;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment