chore: clean up forward declarations (#29904)

This commit is contained in:
David Sanders 2021-07-01 17:51:37 -07:00 committed by GitHub
parent 1f8a46c9c6
commit f6531166ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
78 changed files with 133 additions and 109 deletions

View file

@ -4,9 +4,9 @@
#include <utility> #include <utility>
#include "shell/app/uv_task_runner.h" #include "base/location.h"
#include "base/stl_util.h" #include "base/stl_util.h"
#include "shell/app/uv_task_runner.h"
namespace electron { namespace electron {

View file

@ -8,10 +8,13 @@
#include <map> #include <map>
#include "base/callback.h" #include "base/callback.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h" #include "base/single_thread_task_runner.h"
#include "uv.h" // NOLINT(build/include_directory) #include "uv.h" // NOLINT(build/include_directory)
namespace base {
class Location;
}
namespace electron { namespace electron {
// TaskRunner implementation that posts tasks into libuv's default loop. // TaskRunner implementation that posts tasks into libuv's default loop.

View file

@ -29,8 +29,6 @@ class Dictionary;
namespace electron { namespace electron {
class NativeBrowserView;
namespace api { namespace api {
class WebContents; class WebContents;

View file

@ -23,10 +23,6 @@ namespace gin_helper {
class Dictionary; class Dictionary;
} }
namespace net {
class URLRequestContextGetter;
}
namespace electron { namespace electron {
class ElectronBrowserContext; class ElectronBrowserContext;

View file

@ -16,6 +16,7 @@
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "shell/common/gin_helper/object_template_builder.h" #include "shell/common/gin_helper/object_template_builder.h"
#include "shell/common/node_includes.h" #include "shell/common/node_includes.h"
#include "url/gurl.h"
namespace gin { namespace gin {

View file

@ -15,7 +15,8 @@
#include "shell/browser/event_emitter_mixin.h" #include "shell/browser/event_emitter_mixin.h"
#include "shell/browser/ui/file_dialog.h" #include "shell/browser/ui/file_dialog.h"
#include "shell/common/gin_helper/pinnable.h" #include "shell/common/gin_helper/pinnable.h"
#include "url/gurl.h"
class GURL;
namespace electron { namespace electron {

View file

@ -19,6 +19,7 @@
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "shell/common/gin_helper/object_template_builder.h" #include "shell/common/gin_helper/object_template_builder.h"
#include "shell/common/gin_helper/promise.h" #include "shell/common/gin_helper/promise.h"
#include "shell/common/node_includes.h"
#include "shell/common/options_switches.h" #include "shell/common/options_switches.h"
#include "shell/common/process_util.h" #include "shell/common/process_util.h"
#include "url/url_util.h" #include "url/url_util.h"

View file

@ -29,6 +29,7 @@
#include "shell/common/color_util.h" #include "shell/common/color_util.h"
#include "shell/common/gin_converters/gurl_converter.h" #include "shell/common/gin_converters/gurl_converter.h"
#include "shell/common/gin_converters/value_converter.h" #include "shell/common/gin_converters/value_converter.h"
#include "shell/common/node_includes.h"
#include "shell/common/process_util.h" #include "shell/common/process_util.h"
#include "skia/ext/skia_utils_mac.h" #include "skia/ext/skia_utils_mac.h"
#include "ui/native_theme/native_theme.h" #include "ui/native_theme/native_theme.h"

View file

@ -33,7 +33,6 @@ namespace electron {
namespace api { namespace api {
class Menu; class Menu;
class NativeImage;
class Tray : public gin::Wrappable<Tray>, class Tray : public gin::Wrappable<Tray>,
public gin_helper::EventEmitterMixin<Tray>, public gin_helper::EventEmitterMixin<Tray>,

View file

@ -14,8 +14,6 @@ class Dictionary;
namespace electron { namespace electron {
class InspectableWebContents;
namespace api { namespace api {
class WebContents; class WebContents;

View file

@ -27,10 +27,6 @@ namespace gin {
class Arguments; class Arguments;
} }
namespace gin_helper {
class Dictionary;
}
namespace electron { namespace electron {
namespace api { namespace api {

View file

@ -9,10 +9,6 @@
#include "gin/handle.h" #include "gin/handle.h"
#include "gin/wrappable.h" #include "gin/wrappable.h"
namespace IPC {
class Message;
}
namespace gin_helper { namespace gin_helper {
class Event : public gin::Wrappable<Event> { class Event : public gin::Wrappable<Event> {

View file

@ -18,7 +18,8 @@
namespace gfx { namespace gfx {
class Image; class Image;
} class Rect;
} // namespace gfx
namespace electron { namespace electron {

View file

@ -17,11 +17,11 @@
namespace blink { namespace blink {
class WebBluetoothDeviceId; class WebBluetoothDeviceId;
} // namespace blink }
namespace content { namespace content {
class RenderFrameHost; class RenderFrameHost;
} // namespace content }
namespace device { namespace device {
class BluetoothDevice; class BluetoothDevice;

View file

@ -33,10 +33,6 @@ namespace base {
class FilePath; class FilePath;
} }
namespace gfx {
class Image;
}
namespace gin_helper { namespace gin_helper {
class Arguments; class Arguments;
} }

View file

@ -26,7 +26,7 @@ namespace printing {
class PrintJobManager; class PrintJobManager;
} }
// Empty definition for std::unique_ptr // Empty definition for std::unique_ptr, rather than a forward declaration
class BackgroundModeManager {}; class BackgroundModeManager {};
// NOT THREAD SAFE, call only from the main thread. // NOT THREAD SAFE, call only from the main thread.

View file

@ -18,7 +18,6 @@
#include "services/network/public/mojom/url_loader_factory.mojom.h" #include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "shell/browser/media/media_device_id_salt.h" #include "shell/browser/media/media_device_id_salt.h"
class PrefRegistrySimple;
class PrefService; class PrefService;
class ValueMapPrefStore; class ValueMapPrefStore;
@ -43,7 +42,6 @@ class ElectronDownloadManagerDelegate;
class ElectronPermissionManager; class ElectronPermissionManager;
class CookieChangeNotifier; class CookieChangeNotifier;
class ResolveProxyHelper; class ResolveProxyHelper;
class SpecialStoragePolicy;
class WebViewManager; class WebViewManager;
class ProtocolRegistry; class ProtocolRegistry;

View file

@ -16,7 +16,7 @@
namespace content { namespace content {
class RenderFrameHost; class RenderFrameHost;
} // namespace content }
namespace electron { namespace electron {
class ElectronBrowserHandlerImpl : public mojom::ElectronBrowser, class ElectronBrowserHandlerImpl : public mojom::ElectronBrowser,

View file

@ -11,6 +11,7 @@
#include "base/base_switches.h" #include "base/base_switches.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"

View file

@ -9,7 +9,6 @@
#include <string> #include <string>
#include "base/callback.h" #include "base/callback.h"
#include "base/metrics/field_trial.h"
#include "base/timer/timer.h" #include "base/timer/timer.h"
#include "content/public/browser/browser_context.h" #include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_main_parts.h" #include "content/public/browser/browser_main_parts.h"
@ -20,9 +19,13 @@
#include "third_party/abseil-cpp/absl/types/optional.h" #include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/views/layout/layout_provider.h" #include "ui/views/layout/layout_provider.h"
class BrowserProcess; class BrowserProcessImpl;
class IconManager; class IconManager;
namespace base {
class FieldTrialList;
}
#if defined(USE_AURA) #if defined(USE_AURA)
namespace wm { namespace wm {
class WMState; class WMState;
@ -41,17 +44,15 @@ class GtkUiPlatform;
namespace device { namespace device {
class GeolocationManager; class GeolocationManager;
} // namespace device }
namespace electron { namespace electron {
class ElectronBrowserContext;
class Browser; class Browser;
class ElectronBindings; class ElectronBindings;
class JavascriptEnvironment; class JavascriptEnvironment;
class NodeBindings; class NodeBindings;
class NodeEnvironment; class NodeEnvironment;
class BridgeTaskRunner;
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
class ElectronExtensionsClient; class ElectronExtensionsClient;

View file

@ -13,6 +13,7 @@
#include <sys/resource.h> #include <sys/resource.h>
#include <unistd.h> #include <unistd.h>
#include "base/debug/leak_annotations.h"
#include "base/posix/eintr_wrapper.h" #include "base/posix/eintr_wrapper.h"
#include "base/task/post_task.h" #include "base/task/post_task.h"
#include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_task_traits.h"

View file

@ -10,12 +10,12 @@
#include "content/public/browser/javascript_dialog_manager.h" #include "content/public/browser/javascript_dialog_manager.h"
namespace electron { namespace content {
namespace api {
class WebContents; class WebContents;
} }
namespace electron {
class ElectronJavaScriptDialogManager class ElectronJavaScriptDialogManager
: public content::JavaScriptDialogManager { : public content::JavaScriptDialogManager {
public: public:

View file

@ -8,6 +8,7 @@
#include <utility> #include <utility>
#include <vector> #include <vector>
#include "base/values.h"
#include "content/public/browser/child_process_security_policy.h" #include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/global_routing_id.h" #include "content/public/browser/global_routing_id.h"
#include "content/public/browser/permission_controller.h" #include "content/public/browser/permission_controller.h"

View file

@ -10,9 +10,13 @@
#include "base/callback.h" #include "base/callback.h"
#include "base/containers/id_map.h" #include "base/containers/id_map.h"
#include "base/values.h"
#include "content/public/browser/permission_controller_delegate.h" #include "content/public/browser/permission_controller_delegate.h"
namespace base {
class DictionaryValue;
class Value;
} // namespace base
namespace content { namespace content {
class WebContents; class WebContents;
} }

View file

@ -6,6 +6,8 @@
#include <utility> #include <utility>
#include "content/public/common/storage_quota_params.h"
namespace electron { namespace electron {
ElectronQuotaPermissionContext::ElectronQuotaPermissionContext() = default; ElectronQuotaPermissionContext::ElectronQuotaPermissionContext() = default;

View file

@ -6,7 +6,10 @@
#define SHELL_BROWSER_ELECTRON_QUOTA_PERMISSION_CONTEXT_H_ #define SHELL_BROWSER_ELECTRON_QUOTA_PERMISSION_CONTEXT_H_
#include "content/public/browser/quota_permission_context.h" #include "content/public/browser/quota_permission_context.h"
#include "content/public/common/storage_quota_params.h"
namespace content {
struct StorageQuotaParams;
}
namespace electron { namespace electron {

View file

@ -6,6 +6,7 @@
#include "chrome/common/webui_url_constants.h" #include "chrome/common/webui_url_constants.h"
#include "content/public/browser/web_contents.h" #include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_controller.h"
#include "electron/buildflags/buildflags.h" #include "electron/buildflags/buildflags.h"
#include "shell/browser/ui/devtools_ui.h" #include "shell/browser/ui/devtools_ui.h"
#include "shell/browser/ui/webui/accessibility_ui.h" #include "shell/browser/ui/webui/accessibility_ui.h"

View file

@ -9,9 +9,12 @@
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/singleton.h" #include "base/memory/singleton.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_controller_factory.h" #include "content/public/browser/web_ui_controller_factory.h"
namespace content {
class WebUIController;
}
namespace electron { namespace electron {
class ElectronWebUIControllerFactory : public content::WebUIControllerFactory { class ElectronWebUIControllerFactory : public content::WebUIControllerFactory {

View file

@ -12,7 +12,7 @@
namespace content { namespace content {
class BrowserContext; class BrowserContext;
} // namespace content }
namespace extensions { namespace extensions {

View file

@ -16,6 +16,7 @@
#include "shell/browser/web_contents_zoom_controller.h" #include "shell/browser/web_contents_zoom_controller.h"
#include "shell/common/extensions/api/tabs.h" #include "shell/common/extensions/api/tabs.h"
#include "third_party/blink/public/common/page/page_zoom.h" #include "third_party/blink/public/common/page/page_zoom.h"
#include "url/gurl.h"
using electron::WebContentsZoomController; using electron::WebContentsZoomController;

View file

@ -10,7 +10,8 @@
#include "extensions/browser/api/execute_code_function.h" #include "extensions/browser/api/execute_code_function.h"
#include "extensions/browser/extension_function.h" #include "extensions/browser/extension_function.h"
#include "extensions/common/extension_resource.h" #include "extensions/common/extension_resource.h"
#include "url/gurl.h"
class GURL;
namespace extensions { namespace extensions {

View file

@ -17,11 +17,11 @@
namespace base { namespace base {
class FilePath; class FilePath;
} // namespace base }
namespace content { namespace content {
class BrowserContext; class BrowserContext;
} // namespace content }
namespace extensions { namespace extensions {

View file

@ -10,6 +10,7 @@
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "shell/browser/browser.h" #include "shell/browser/browser.h"
#include "shell/browser/window_list.h" #include "shell/browser/window_list.h"
#include "shell/common/color_util.h" #include "shell/common/color_util.h"

View file

@ -13,7 +13,6 @@
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "base/observer_list.h" #include "base/observer_list.h"
#include "base/supports_user_data.h" #include "base/supports_user_data.h"
#include "base/values.h"
#include "content/public/browser/desktop_media_id.h" #include "content/public/browser/desktop_media_id.h"
#include "content/public/browser/web_contents_user_data.h" #include "content/public/browser/web_contents_user_data.h"
#include "extensions/browser/app_window/size_constraints.h" #include "extensions/browser/app_window/size_constraints.h"
@ -21,7 +20,9 @@
#include "third_party/abseil-cpp/absl/types/optional.h" #include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/views/widget/widget_delegate.h" #include "ui/views/widget/widget_delegate.h"
class SkRegion; namespace base {
class DictionaryValue;
}
namespace content { namespace content {
struct NativeWebKeyboardEvent; struct NativeWebKeyboardEvent;
@ -31,7 +32,6 @@ namespace gfx {
class Image; class Image;
class Point; class Point;
class Rect; class Rect;
class RectF;
enum class ResizeEdge; enum class ResizeEdge;
class Size; class Size;
} // namespace gfx } // namespace gfx

View file

@ -38,6 +38,7 @@
#include "shell/browser/window_list.h" #include "shell/browser/window_list.h"
#include "shell/common/gin_converters/gfx_converter.h" #include "shell/common/gin_converters/gfx_converter.h"
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "shell/common/node_includes.h"
#include "shell/common/options_switches.h" #include "shell/common/options_switches.h"
#include "shell/common/process_util.h" #include "shell/common/process_util.h"
#include "skia/ext/skia_utils_mac.h" #include "skia/ext/skia_utils_mac.h"

View file

@ -10,12 +10,13 @@
#include "base/observer_list_types.h" #include "base/observer_list_types.h"
#include "base/values.h" #include "base/values.h"
#include "ui/base/window_open_disposition.h" #include "ui/base/window_open_disposition.h"
#include "url/gurl.h"
#if defined(OS_WIN) #if defined(OS_WIN)
#include <windows.h> #include <windows.h>
#endif #endif
class GURL;
namespace gfx { namespace gfx {
class Rect; class Rect;
enum class ResizeEdge; enum class ResizeEdge;

View file

@ -10,7 +10,7 @@
class KeyedService; class KeyedService;
namespace contenet { namespace content {
class BrowserContext; class BrowserContext;
} }

View file

@ -16,10 +16,6 @@
#include "services/network/public/mojom/url_loader_factory.mojom.h" #include "services/network/public/mojom/url_loader_factory.mojom.h"
#include "third_party/abseil-cpp/absl/types/optional.h" #include "third_party/abseil-cpp/absl/types/optional.h"
namespace net_log {
class NetExportFileWriter;
}
namespace electron { namespace electron {
network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams(); network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams();
} }

View file

@ -43,7 +43,7 @@
namespace content { namespace content {
class CursorManager; class CursorManager;
} // namespace content }
namespace electron { namespace electron {

View file

@ -6,6 +6,8 @@
#include <utility> #include <utility>
#include "components/prefs/persistent_pref_store.h"
#include "components/prefs/pref_store.h"
#include "components/prefs/value_map_pref_store.h" #include "components/prefs/value_map_pref_store.h"
#include "shell/browser/electron_browser_context.h" #include "shell/browser/electron_browser_context.h"

View file

@ -9,9 +9,13 @@
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/weak_ptr.h" #include "base/memory/weak_ptr.h"
#include "components/prefs/persistent_pref_store.h"
#include "components/prefs/pref_value_store.h" #include "components/prefs/pref_value_store.h"
class PersistentPrefStore;
class PrefNotifier;
class PrefRegistry;
class PrefStore;
namespace electron { namespace electron {
class ElectronBrowserContext; class ElectronBrowserContext;

View file

@ -12,7 +12,7 @@
namespace content { namespace content {
class BrowserContext; class BrowserContext;
} // namespace content }
namespace electron { namespace electron {

View file

@ -21,7 +21,7 @@
namespace content { namespace content {
class RenderFrameHost; class RenderFrameHost;
} // namespace content }
namespace electron { namespace electron {

View file

@ -6,6 +6,7 @@
#include "base/logging.h" #include "base/logging.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
#include "content/public/browser/browser_context.h"
namespace electron { namespace electron {

View file

@ -9,7 +9,10 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/supports_user_data.h" #include "base/supports_user_data.h"
#include "content/public/browser/browser_context.h"
namespace content {
class BrowserContext;
}
namespace electron { namespace electron {

View file

@ -14,7 +14,7 @@
namespace electron { namespace electron {
class NativeWindow; class NativeWindow;
} // namespace electron }
namespace certificate_trust { namespace certificate_trust {

View file

@ -11,8 +11,6 @@
namespace electron { namespace electron {
class BrowserContext;
class DevToolsUI : public content::WebUIController { class DevToolsUI : public content::WebUIController {
public: public:
explicit DevToolsUI(content::BrowserContext* browser_context, explicit DevToolsUI(content::BrowserContext* browser_context,

View file

@ -11,10 +11,6 @@
#include "shell/browser/ui/tray_icon.h" #include "shell/browser/ui/tray_icon.h"
#include "ui/views/linux_ui/status_icon_linux.h" #include "ui/views/linux_ui/status_icon_linux.h"
namespace views {
class StatusIconLinux;
}
namespace electron { namespace electron {
class TrayIconGtk : public TrayIcon, public views::StatusIconLinux::Delegate { class TrayIconGtk : public TrayIcon, public views::StatusIconLinux::Delegate {

View file

@ -15,10 +15,6 @@ namespace base {
class CommandLine; class CommandLine;
} }
namespace content {
struct WebPreferences;
}
namespace gin_helper { namespace gin_helper {
class Dictionary; class Dictionary;
} }

View file

@ -9,6 +9,7 @@
#include <vector> #include <vector>
#include "base/bind.h" #include "base/bind.h"
#include "base/files/file_path.h"
#include "base/strings/string_number_conversions.h" #include "base/strings/string_number_conversions.h"
#include "base/values.h" #include "base/values.h"
#include "components/prefs/json_pref_store.h" #include "components/prefs/json_pref_store.h"

View file

@ -7,7 +7,6 @@
#include <string> #include <string>
#include "base/files/file_path.h"
#include "base/macros.h" #include "base/macros.h"
#include "components/prefs/pref_service.h" #include "components/prefs/pref_service.h"
#include "content/public/browser/host_zoom_map.h" #include "content/public/browser/host_zoom_map.h"
@ -15,7 +14,8 @@
namespace base { namespace base {
class DictionaryValue; class DictionaryValue;
} class FilePath;
} // namespace base
class PrefRegistrySimple; class PrefRegistrySimple;

View file

@ -12,7 +12,9 @@
#include "shell/common/gin_converters/image_converter.h" #include "shell/common/gin_converters/image_converter.h"
#include "shell/common/gin_helper/promise.h" #include "shell/common/gin_helper/promise.h"
#include "shell/common/skia_util.h" #include "shell/common/skia_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/icon_util.h" #include "ui/gfx/icon_util.h"
#include "ui/gfx/image/image_skia.h"
namespace electron { namespace electron {

View file

@ -17,7 +17,6 @@ class APIPermissionSet;
class Extension; class Extension;
class PermissionMessageProvider; class PermissionMessageProvider;
class PermissionIDSet; class PermissionIDSet;
class ScriptingWhitelist;
class URLPatternSet; class URLPatternSet;
} // namespace extensions } // namespace extensions

View file

@ -17,7 +17,6 @@ class WebMouseEvent;
class WebMouseWheelEvent; class WebMouseWheelEvent;
class WebKeyboardEvent; class WebKeyboardEvent;
struct DeviceEmulationParams; struct DeviceEmulationParams;
struct WebSize;
} // namespace blink } // namespace blink
namespace gin { namespace gin {

View file

@ -11,7 +11,7 @@
namespace extensions { namespace extensions {
class Extension; class Extension;
} // namespace extensions }
namespace gin { namespace gin {

View file

@ -9,7 +9,7 @@
namespace content { namespace content {
class RenderFrameHost; class RenderFrameHost;
} // namespace content }
namespace gin { namespace gin {

View file

@ -13,14 +13,8 @@
#include "services/network/public/mojom/fetch_api.mojom.h" #include "services/network/public/mojom/fetch_api.mojom.h"
#include "shell/browser/net/cert_verifier_client.h" #include "shell/browser/net/cert_verifier_client.h"
namespace base {
class DictionaryValue;
class ListValue;
} // namespace base
namespace net { namespace net {
class AuthChallengeInfo; class AuthChallengeInfo;
class URLRequest;
class X509Certificate; class X509Certificate;
class HttpResponseHeaders; class HttpResponseHeaders;
struct CertPrincipal; struct CertPrincipal;

View file

@ -9,7 +9,7 @@
namespace gin { namespace gin {
class Arguments; class Arguments;
} // namespace gin }
namespace gin_helper { namespace gin_helper {

View file

@ -4,7 +4,9 @@
#include "shell/common/heap_snapshot.h" #include "shell/common/heap_snapshot.h"
#include "base/files/file.h"
#include "v8/include/v8-profiler.h" #include "v8/include/v8-profiler.h"
#include "v8/include/v8.h"
namespace { namespace {

View file

@ -5,8 +5,13 @@
#ifndef SHELL_COMMON_HEAP_SNAPSHOT_H_ #ifndef SHELL_COMMON_HEAP_SNAPSHOT_H_
#define SHELL_COMMON_HEAP_SNAPSHOT_H_ #define SHELL_COMMON_HEAP_SNAPSHOT_H_
#include "base/files/file.h" namespace base {
#include "v8/include/v8.h" class File;
}
namespace v8 {
class Isolate;
}
namespace electron { namespace electron {

View file

@ -17,6 +17,7 @@
#include "base/environment.h" #include "base/environment.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_split.h" #include "base/strings/string_split.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"

View file

@ -10,12 +10,11 @@
#include "base/files/file_path.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/single_thread_task_runner.h"
#include "uv.h" // NOLINT(build/include_directory) #include "uv.h" // NOLINT(build/include_directory)
#include "v8/include/v8.h" #include "v8/include/v8.h"
namespace base { namespace base {
class MessageLoop; class SingleThreadTaskRunner;
} }
namespace node { namespace node {

View file

@ -11,7 +11,7 @@
namespace node { namespace node {
class Environment; class Environment;
} // namespace node }
namespace electron { namespace electron {

View file

@ -6,6 +6,7 @@
#include "gin/dictionary.h" #include "gin/dictionary.h"
#include "shell/common/gin_converters/callback_converter.h" #include "shell/common/gin_converters/callback_converter.h"
#include "shell/common/node_includes.h"
namespace electron { namespace electron {

View file

@ -7,7 +7,9 @@
#include <string> #include <string>
#include "shell/common/node_includes.h" namespace node {
class Environment;
}
namespace electron { namespace electron {

View file

@ -4,6 +4,7 @@
#include <string> #include <string>
#include "base/files/file_path.h"
#include "base/files/file_util.h" #include "base/files/file_util.h"
#include "base/strings/pattern.h" #include "base/strings/pattern.h"
#include "base/strings/string_util.h" #include "base/strings/string_util.h"

View file

@ -5,7 +5,13 @@
#ifndef SHELL_COMMON_SKIA_UTIL_H_ #ifndef SHELL_COMMON_SKIA_UTIL_H_
#define SHELL_COMMON_SKIA_UTIL_H_ #define SHELL_COMMON_SKIA_UTIL_H_
#include "ui/gfx/image/image_skia.h" namespace base {
class FilePath;
}
namespace gfx {
class ImageSkia;
}
namespace electron { namespace electron {

View file

@ -7,11 +7,11 @@
namespace mojo { namespace mojo {
class BinderMap; class BinderMap;
} // namespace mojo }
namespace electron { namespace electron {
class RendererClientBase; class RendererClientBase;
} // namespace electron }
class ChromeContentRendererClient; class ChromeContentRendererClient;

View file

@ -21,6 +21,7 @@
#include "shell/common/gin_helper/microtasks_scope.h" #include "shell/common/gin_helper/microtasks_scope.h"
#include "shell/common/options_switches.h" #include "shell/common/options_switches.h"
#include "shell/common/world_ids.h" #include "shell/common/world_ids.h"
#include "shell/renderer/renderer_client_base.h"
#include "third_party/blink/public/common/browser_interface_broker_proxy.h" #include "third_party/blink/public/common/browser_interface_broker_proxy.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h" #include "third_party/blink/public/common/web_preferences/web_preferences.h"
#include "third_party/blink/public/platform/web_isolated_world_info.h" #include "third_party/blink/public/platform/web_isolated_world_info.h"

View file

@ -9,15 +9,12 @@
#include "content/public/renderer/render_frame_observer.h" #include "content/public/renderer/render_frame_observer.h"
#include "ipc/ipc_platform_file.h" #include "ipc/ipc_platform_file.h"
#include "shell/renderer/renderer_client_base.h"
#include "third_party/blink/public/web/web_local_frame.h" #include "third_party/blink/public/web/web_local_frame.h"
namespace base {
class ListValue;
}
namespace electron { namespace electron {
class RendererClientBase;
// Helper class to forward the messages to the client. // Helper class to forward the messages to the client.
class ElectronRenderFrameObserver : public content::RenderFrameObserver { class ElectronRenderFrameObserver : public content::RenderFrameObserver {
public: public:

View file

@ -13,7 +13,7 @@
namespace node { namespace node {
class Environment; class Environment;
} // namespace node }
namespace electron { namespace electron {

View file

@ -11,6 +11,7 @@
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/path_service.h" #include "base/path_service.h"
#include "base/process/process_handle.h" #include "base/process/process_handle.h"
#include "base/process/process_metrics.h"
#include "content/public/renderer/render_frame.h" #include "content/public/renderer/render_frame.h"
#include "electron/buildflags/buildflags.h" #include "electron/buildflags/buildflags.h"
#include "shell/common/api/electron_bindings.h" #include "shell/common/api/electron_bindings.h"

View file

@ -8,9 +8,16 @@
#include <set> #include <set>
#include <string> #include <string>
#include "base/process/process_metrics.h"
#include "shell/renderer/renderer_client_base.h" #include "shell/renderer/renderer_client_base.h"
namespace base {
class ProcessMetrics;
}
namespace blink {
class WebLocalFrame;
}
namespace electron { namespace electron {
class ElectronSandboxedRendererClient : public RendererClientBase { class ElectronSandboxedRendererClient : public RendererClientBase {

View file

@ -10,6 +10,7 @@
#include "base/bind.h" #include "base/bind.h"
#include "base/lazy_instance.h" #include "base/lazy_instance.h"
#include "base/threading/thread_task_runner_handle.h" #include "base/threading/thread_task_runner_handle.h"
#include "content/public/renderer/render_frame.h"
#include "ui/gfx/geometry/size.h" #include "ui/gfx/geometry/size.h"
namespace electron { namespace electron {

View file

@ -6,7 +6,10 @@
#define SHELL_RENDERER_GUEST_VIEW_CONTAINER_H_ #define SHELL_RENDERER_GUEST_VIEW_CONTAINER_H_
#include "base/callback.h" #include "base/callback.h"
#include "content/public/renderer/render_frame.h"
namespace content {
class RenderFrame;
}
namespace gfx { namespace gfx {
class Size; class Size;

View file

@ -41,6 +41,7 @@
#include "third_party/blink/public/web/blink.h" #include "third_party/blink/public/web/blink.h"
#include "third_party/blink/public/web/web_custom_element.h" // NOLINT(build/include_alpha) #include "third_party/blink/public/web/web_custom_element.h" // NOLINT(build/include_alpha)
#include "third_party/blink/public/web/web_frame_widget.h" #include "third_party/blink/public/web/web_frame_widget.h"
#include "third_party/blink/public/web/web_local_frame.h"
#include "third_party/blink/public/web/web_plugin_params.h" #include "third_party/blink/public/web/web_plugin_params.h"
#include "third_party/blink/public/web/web_script_source.h" #include "third_party/blink/public/web/web_script_source.h"
#include "third_party/blink/public/web/web_security_policy.h" #include "third_party/blink/public/web/web_security_policy.h"

View file

@ -13,7 +13,6 @@
#include "electron/buildflags/buildflags.h" #include "electron/buildflags/buildflags.h"
#include "printing/buildflags/buildflags.h" #include "printing/buildflags/buildflags.h"
#include "shell/common/gin_helper/dictionary.h" #include "shell/common/gin_helper/dictionary.h"
#include "third_party/blink/public/web/web_local_frame.h"
// In SHARED_INTERMEDIATE_DIR. // In SHARED_INTERMEDIATE_DIR.
#include "widevine_cdm_version.h" // NOLINT(build/include_directory) #include "widevine_cdm_version.h" // NOLINT(build/include_directory)
@ -32,19 +31,18 @@
class SpellCheck; class SpellCheck;
#endif #endif
namespace blink {
class WebLocalFrame;
}
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
namespace extensions { namespace extensions {
class ExtensionsClient; class ExtensionsClient;
} }
namespace content {
struct WebPluginInfo;
}
#endif #endif
namespace electron { namespace electron {
class ElectronApiServiceImpl;
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS) #if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
class ElectronExtensionsRendererClient; class ElectronExtensionsRendererClient;
#endif #endif

View file

@ -18,7 +18,7 @@ class PrintingHandler;
namespace mojo { namespace mojo {
class ServiceFactory; class ServiceFactory;
} // namespace mojo }
namespace electron { namespace electron {