зеркало из https://github.com/electron/electron.git
chore: clean up forward declarations (#29904)
This commit is contained in:
Родитель
1f8a46c9c6
Коммит
f6531166ae
|
@ -4,9 +4,9 @@
|
|||
|
||||
#include <utility>
|
||||
|
||||
#include "shell/app/uv_task_runner.h"
|
||||
|
||||
#include "base/location.h"
|
||||
#include "base/stl_util.h"
|
||||
#include "shell/app/uv_task_runner.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -8,10 +8,13 @@
|
|||
#include <map>
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "base/location.h"
|
||||
#include "base/single_thread_task_runner.h"
|
||||
#include "uv.h" // NOLINT(build/include_directory)
|
||||
|
||||
namespace base {
|
||||
class Location;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
// TaskRunner implementation that posts tasks into libuv's default loop.
|
||||
|
|
|
@ -29,8 +29,6 @@ class Dictionary;
|
|||
|
||||
namespace electron {
|
||||
|
||||
class NativeBrowserView;
|
||||
|
||||
namespace api {
|
||||
|
||||
class WebContents;
|
||||
|
|
|
@ -23,10 +23,6 @@ namespace gin_helper {
|
|||
class Dictionary;
|
||||
}
|
||||
|
||||
namespace net {
|
||||
class URLRequestContextGetter;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronBrowserContext;
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "shell/common/gin_helper/object_template_builder.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
namespace gin {
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
#include "shell/browser/event_emitter_mixin.h"
|
||||
#include "shell/browser/ui/file_dialog.h"
|
||||
#include "shell/common/gin_helper/pinnable.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "shell/common/gin_helper/object_template_builder.h"
|
||||
#include "shell/common/gin_helper/promise.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
#include "shell/common/options_switches.h"
|
||||
#include "shell/common/process_util.h"
|
||||
#include "url/url_util.h"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "shell/common/color_util.h"
|
||||
#include "shell/common/gin_converters/gurl_converter.h"
|
||||
#include "shell/common/gin_converters/value_converter.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
#include "shell/common/process_util.h"
|
||||
#include "skia/ext/skia_utils_mac.h"
|
||||
#include "ui/native_theme/native_theme.h"
|
||||
|
|
|
@ -33,7 +33,6 @@ namespace electron {
|
|||
namespace api {
|
||||
|
||||
class Menu;
|
||||
class NativeImage;
|
||||
|
||||
class Tray : public gin::Wrappable<Tray>,
|
||||
public gin_helper::EventEmitterMixin<Tray>,
|
||||
|
|
|
@ -14,8 +14,6 @@ class Dictionary;
|
|||
|
||||
namespace electron {
|
||||
|
||||
class InspectableWebContents;
|
||||
|
||||
namespace api {
|
||||
|
||||
class WebContents;
|
||||
|
|
|
@ -27,10 +27,6 @@ namespace gin {
|
|||
class Arguments;
|
||||
}
|
||||
|
||||
namespace gin_helper {
|
||||
class Dictionary;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace api {
|
||||
|
|
|
@ -9,10 +9,6 @@
|
|||
#include "gin/handle.h"
|
||||
#include "gin/wrappable.h"
|
||||
|
||||
namespace IPC {
|
||||
class Message;
|
||||
}
|
||||
|
||||
namespace gin_helper {
|
||||
|
||||
class Event : public gin::Wrappable<Event> {
|
||||
|
|
|
@ -18,7 +18,8 @@
|
|||
|
||||
namespace gfx {
|
||||
class Image;
|
||||
}
|
||||
class Rect;
|
||||
} // namespace gfx
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
|
||||
namespace blink {
|
||||
class WebBluetoothDeviceId;
|
||||
} // namespace blink
|
||||
}
|
||||
|
||||
namespace content {
|
||||
class RenderFrameHost;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace device {
|
||||
class BluetoothDevice;
|
||||
|
|
|
@ -33,10 +33,6 @@ namespace base {
|
|||
class FilePath;
|
||||
}
|
||||
|
||||
namespace gfx {
|
||||
class Image;
|
||||
}
|
||||
|
||||
namespace gin_helper {
|
||||
class Arguments;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace printing {
|
|||
class PrintJobManager;
|
||||
}
|
||||
|
||||
// Empty definition for std::unique_ptr
|
||||
// Empty definition for std::unique_ptr, rather than a forward declaration
|
||||
class BackgroundModeManager {};
|
||||
|
||||
// NOT THREAD SAFE, call only from the main thread.
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include "services/network/public/mojom/url_loader_factory.mojom.h"
|
||||
#include "shell/browser/media/media_device_id_salt.h"
|
||||
|
||||
class PrefRegistrySimple;
|
||||
class PrefService;
|
||||
class ValueMapPrefStore;
|
||||
|
||||
|
@ -43,7 +42,6 @@ class ElectronDownloadManagerDelegate;
|
|||
class ElectronPermissionManager;
|
||||
class CookieChangeNotifier;
|
||||
class ResolveProxyHelper;
|
||||
class SpecialStoragePolicy;
|
||||
class WebViewManager;
|
||||
class ProtocolRegistry;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
namespace content {
|
||||
class RenderFrameHost;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
class ElectronBrowserHandlerImpl : public mojom::ElectronBrowser,
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "base/base_switches.h"
|
||||
#include "base/command_line.h"
|
||||
#include "base/feature_list.h"
|
||||
#include "base/metrics/field_trial.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/run_loop.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
#include <string>
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "base/metrics/field_trial.h"
|
||||
#include "base/timer/timer.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/browser_main_parts.h"
|
||||
|
@ -20,9 +19,13 @@
|
|||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
#include "ui/views/layout/layout_provider.h"
|
||||
|
||||
class BrowserProcess;
|
||||
class BrowserProcessImpl;
|
||||
class IconManager;
|
||||
|
||||
namespace base {
|
||||
class FieldTrialList;
|
||||
}
|
||||
|
||||
#if defined(USE_AURA)
|
||||
namespace wm {
|
||||
class WMState;
|
||||
|
@ -41,17 +44,15 @@ class GtkUiPlatform;
|
|||
|
||||
namespace device {
|
||||
class GeolocationManager;
|
||||
} // namespace device
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronBrowserContext;
|
||||
class Browser;
|
||||
class ElectronBindings;
|
||||
class JavascriptEnvironment;
|
||||
class NodeBindings;
|
||||
class NodeEnvironment;
|
||||
class BridgeTaskRunner;
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
class ElectronExtensionsClient;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <sys/resource.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "base/debug/leak_annotations.h"
|
||||
#include "base/posix/eintr_wrapper.h"
|
||||
#include "base/task/post_task.h"
|
||||
#include "content/public/browser/browser_task_traits.h"
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
#include "content/public/browser/javascript_dialog_manager.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
namespace api {
|
||||
namespace content {
|
||||
class WebContents;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronJavaScriptDialogManager
|
||||
: public content::JavaScriptDialogManager {
|
||||
public:
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "base/values.h"
|
||||
#include "content/public/browser/child_process_security_policy.h"
|
||||
#include "content/public/browser/global_routing_id.h"
|
||||
#include "content/public/browser/permission_controller.h"
|
||||
|
|
|
@ -10,9 +10,13 @@
|
|||
|
||||
#include "base/callback.h"
|
||||
#include "base/containers/id_map.h"
|
||||
#include "base/values.h"
|
||||
#include "content/public/browser/permission_controller_delegate.h"
|
||||
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
class Value;
|
||||
} // namespace base
|
||||
|
||||
namespace content {
|
||||
class WebContents;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <utility>
|
||||
|
||||
#include "content/public/common/storage_quota_params.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
ElectronQuotaPermissionContext::ElectronQuotaPermissionContext() = default;
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
#define SHELL_BROWSER_ELECTRON_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 {
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "chrome/common/webui_url_constants.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "content/public/browser/web_ui_controller.h"
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
#include "shell/browser/ui/devtools_ui.h"
|
||||
#include "shell/browser/ui/webui/accessibility_ui.h"
|
||||
|
|
|
@ -9,9 +9,12 @@
|
|||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/singleton.h"
|
||||
#include "content/public/browser/web_ui_controller.h"
|
||||
#include "content/public/browser/web_ui_controller_factory.h"
|
||||
|
||||
namespace content {
|
||||
class WebUIController;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronWebUIControllerFactory : public content::WebUIControllerFactory {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace extensions {
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include "shell/browser/web_contents_zoom_controller.h"
|
||||
#include "shell/common/extensions/api/tabs.h"
|
||||
#include "third_party/blink/public/common/page/page_zoom.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
using electron::WebContentsZoomController;
|
||||
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
#include "extensions/browser/api/execute_code_function.h"
|
||||
#include "extensions/browser/extension_function.h"
|
||||
#include "extensions/common/extension_resource.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace extensions {
|
||||
|
||||
|
|
|
@ -17,11 +17,11 @@
|
|||
|
||||
namespace base {
|
||||
class FilePath;
|
||||
} // namespace base
|
||||
}
|
||||
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace extensions {
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/values.h"
|
||||
#include "shell/browser/browser.h"
|
||||
#include "shell/browser/window_list.h"
|
||||
#include "shell/common/color_util.h"
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include "base/memory/weak_ptr.h"
|
||||
#include "base/observer_list.h"
|
||||
#include "base/supports_user_data.h"
|
||||
#include "base/values.h"
|
||||
#include "content/public/browser/desktop_media_id.h"
|
||||
#include "content/public/browser/web_contents_user_data.h"
|
||||
#include "extensions/browser/app_window/size_constraints.h"
|
||||
|
@ -21,7 +20,9 @@
|
|||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
#include "ui/views/widget/widget_delegate.h"
|
||||
|
||||
class SkRegion;
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
}
|
||||
|
||||
namespace content {
|
||||
struct NativeWebKeyboardEvent;
|
||||
|
@ -31,7 +32,6 @@ namespace gfx {
|
|||
class Image;
|
||||
class Point;
|
||||
class Rect;
|
||||
class RectF;
|
||||
enum class ResizeEdge;
|
||||
class Size;
|
||||
} // namespace gfx
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
#include "shell/browser/window_list.h"
|
||||
#include "shell/common/gin_converters/gfx_converter.h"
|
||||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
#include "shell/common/options_switches.h"
|
||||
#include "shell/common/process_util.h"
|
||||
#include "skia/ext/skia_utils_mac.h"
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
#include "base/observer_list_types.h"
|
||||
#include "base/values.h"
|
||||
#include "ui/base/window_open_disposition.h"
|
||||
#include "url/gurl.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
class GURL;
|
||||
|
||||
namespace gfx {
|
||||
class Rect;
|
||||
enum class ResizeEdge;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
class KeyedService;
|
||||
|
||||
namespace contenet {
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
}
|
||||
|
||||
|
|
|
@ -16,10 +16,6 @@
|
|||
#include "services/network/public/mojom/url_loader_factory.mojom.h"
|
||||
#include "third_party/abseil-cpp/absl/types/optional.h"
|
||||
|
||||
namespace net_log {
|
||||
class NetExportFileWriter;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams();
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
namespace content {
|
||||
class CursorManager;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <utility>
|
||||
|
||||
#include "components/prefs/persistent_pref_store.h"
|
||||
#include "components/prefs/pref_store.h"
|
||||
#include "components/prefs/value_map_pref_store.h"
|
||||
#include "shell/browser/electron_browser_context.h"
|
||||
|
||||
|
|
|
@ -9,9 +9,13 @@
|
|||
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "components/prefs/persistent_pref_store.h"
|
||||
#include "components/prefs/pref_value_store.h"
|
||||
|
||||
class PersistentPrefStore;
|
||||
class PrefNotifier;
|
||||
class PrefRegistry;
|
||||
class PrefStore;
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronBrowserContext;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace content {
|
||||
class RenderFrameHost;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "base/logging.h"
|
||||
#include "base/memory/ptr_util.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/supports_user_data.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
|
||||
namespace content {
|
||||
class BrowserContext;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
namespace electron {
|
||||
class NativeWindow;
|
||||
} // namespace electron
|
||||
}
|
||||
|
||||
namespace certificate_trust {
|
||||
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
|
||||
namespace electron {
|
||||
|
||||
class BrowserContext;
|
||||
|
||||
class DevToolsUI : public content::WebUIController {
|
||||
public:
|
||||
explicit DevToolsUI(content::BrowserContext* browser_context,
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
#include "shell/browser/ui/tray_icon.h"
|
||||
#include "ui/views/linux_ui/status_icon_linux.h"
|
||||
|
||||
namespace views {
|
||||
class StatusIconLinux;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class TrayIconGtk : public TrayIcon, public views::StatusIconLinux::Delegate {
|
||||
|
|
|
@ -15,10 +15,6 @@ namespace base {
|
|||
class CommandLine;
|
||||
}
|
||||
|
||||
namespace content {
|
||||
struct WebPreferences;
|
||||
}
|
||||
|
||||
namespace gin_helper {
|
||||
class Dictionary;
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
#include <vector>
|
||||
|
||||
#include "base/bind.h"
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/values.h"
|
||||
#include "components/prefs/json_pref_store.h"
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/macros.h"
|
||||
#include "components/prefs/pref_service.h"
|
||||
#include "content/public/browser/host_zoom_map.h"
|
||||
|
@ -15,7 +14,8 @@
|
|||
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
}
|
||||
class FilePath;
|
||||
} // namespace base
|
||||
|
||||
class PrefRegistrySimple;
|
||||
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
#include "shell/common/gin_converters/image_converter.h"
|
||||
#include "shell/common/gin_helper/promise.h"
|
||||
#include "shell/common/skia_util.h"
|
||||
#include "third_party/skia/include/core/SkBitmap.h"
|
||||
#include "ui/gfx/icon_util.h"
|
||||
#include "ui/gfx/image/image_skia.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ class APIPermissionSet;
|
|||
class Extension;
|
||||
class PermissionMessageProvider;
|
||||
class PermissionIDSet;
|
||||
class ScriptingWhitelist;
|
||||
class URLPatternSet;
|
||||
} // namespace extensions
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ class WebMouseEvent;
|
|||
class WebMouseWheelEvent;
|
||||
class WebKeyboardEvent;
|
||||
struct DeviceEmulationParams;
|
||||
struct WebSize;
|
||||
} // namespace blink
|
||||
|
||||
namespace gin {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace extensions {
|
||||
class Extension;
|
||||
} // namespace extensions
|
||||
}
|
||||
|
||||
namespace gin {
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace content {
|
||||
class RenderFrameHost;
|
||||
} // namespace content
|
||||
}
|
||||
|
||||
namespace gin {
|
||||
|
||||
|
|
|
@ -13,14 +13,8 @@
|
|||
#include "services/network/public/mojom/fetch_api.mojom.h"
|
||||
#include "shell/browser/net/cert_verifier_client.h"
|
||||
|
||||
namespace base {
|
||||
class DictionaryValue;
|
||||
class ListValue;
|
||||
} // namespace base
|
||||
|
||||
namespace net {
|
||||
class AuthChallengeInfo;
|
||||
class URLRequest;
|
||||
class X509Certificate;
|
||||
class HttpResponseHeaders;
|
||||
struct CertPrincipal;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
namespace gin {
|
||||
class Arguments;
|
||||
} // namespace gin
|
||||
}
|
||||
|
||||
namespace gin_helper {
|
||||
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
#include "shell/common/heap_snapshot.h"
|
||||
|
||||
#include "base/files/file.h"
|
||||
#include "v8/include/v8-profiler.h"
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace {
|
||||
|
||||
|
|
|
@ -5,8 +5,13 @@
|
|||
#ifndef SHELL_COMMON_HEAP_SNAPSHOT_H_
|
||||
#define SHELL_COMMON_HEAP_SNAPSHOT_H_
|
||||
|
||||
#include "base/files/file.h"
|
||||
#include "v8/include/v8.h"
|
||||
namespace base {
|
||||
class File;
|
||||
}
|
||||
|
||||
namespace v8 {
|
||||
class Isolate;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include "base/environment.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/run_loop.h"
|
||||
#include "base/single_thread_task_runner.h"
|
||||
#include "base/strings/string_split.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/threading/thread_task_runner_handle.h"
|
||||
|
|
|
@ -10,12 +10,11 @@
|
|||
#include "base/files/file_path.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "base/single_thread_task_runner.h"
|
||||
#include "uv.h" // NOLINT(build/include_directory)
|
||||
#include "v8/include/v8.h"
|
||||
|
||||
namespace base {
|
||||
class MessageLoop;
|
||||
class SingleThreadTaskRunner;
|
||||
}
|
||||
|
||||
namespace node {
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace node {
|
||||
class Environment;
|
||||
} // namespace node
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include "gin/dictionary.h"
|
||||
#include "shell/common/gin_converters/callback_converter.h"
|
||||
#include "shell/common/node_includes.h"
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "shell/common/node_includes.h"
|
||||
namespace node {
|
||||
class Environment;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "base/files/file_path.h"
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/strings/pattern.h"
|
||||
#include "base/strings/string_util.h"
|
||||
|
|
|
@ -5,7 +5,13 @@
|
|||
#ifndef 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 {
|
||||
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
namespace mojo {
|
||||
class BinderMap;
|
||||
} // namespace mojo
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
class RendererClientBase;
|
||||
} // namespace electron
|
||||
}
|
||||
|
||||
class ChromeContentRendererClient;
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include "shell/common/gin_helper/microtasks_scope.h"
|
||||
#include "shell/common/options_switches.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/web_preferences/web_preferences.h"
|
||||
#include "third_party/blink/public/platform/web_isolated_world_info.h"
|
||||
|
|
|
@ -9,15 +9,12 @@
|
|||
|
||||
#include "content/public/renderer/render_frame_observer.h"
|
||||
#include "ipc/ipc_platform_file.h"
|
||||
#include "shell/renderer/renderer_client_base.h"
|
||||
#include "third_party/blink/public/web/web_local_frame.h"
|
||||
|
||||
namespace base {
|
||||
class ListValue;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class RendererClientBase;
|
||||
|
||||
// Helper class to forward the messages to the client.
|
||||
class ElectronRenderFrameObserver : public content::RenderFrameObserver {
|
||||
public:
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
namespace node {
|
||||
class Environment;
|
||||
} // namespace node
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "base/files/file_path.h"
|
||||
#include "base/path_service.h"
|
||||
#include "base/process/process_handle.h"
|
||||
#include "base/process/process_metrics.h"
|
||||
#include "content/public/renderer/render_frame.h"
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
#include "shell/common/api/electron_bindings.h"
|
||||
|
|
|
@ -8,9 +8,16 @@
|
|||
#include <set>
|
||||
#include <string>
|
||||
|
||||
#include "base/process/process_metrics.h"
|
||||
#include "shell/renderer/renderer_client_base.h"
|
||||
|
||||
namespace base {
|
||||
class ProcessMetrics;
|
||||
}
|
||||
|
||||
namespace blink {
|
||||
class WebLocalFrame;
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronSandboxedRendererClient : public RendererClientBase {
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
#include "base/bind.h"
|
||||
#include "base/lazy_instance.h"
|
||||
#include "base/threading/thread_task_runner_handle.h"
|
||||
#include "content/public/renderer/render_frame.h"
|
||||
#include "ui/gfx/geometry/size.h"
|
||||
|
||||
namespace electron {
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
#define SHELL_RENDERER_GUEST_VIEW_CONTAINER_H_
|
||||
|
||||
#include "base/callback.h"
|
||||
#include "content/public/renderer/render_frame.h"
|
||||
|
||||
namespace content {
|
||||
class RenderFrame;
|
||||
}
|
||||
|
||||
namespace gfx {
|
||||
class Size;
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#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_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_script_source.h"
|
||||
#include "third_party/blink/public/web/web_security_policy.h"
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include "electron/buildflags/buildflags.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "shell/common/gin_helper/dictionary.h"
|
||||
#include "third_party/blink/public/web/web_local_frame.h"
|
||||
// In SHARED_INTERMEDIATE_DIR.
|
||||
#include "widevine_cdm_version.h" // NOLINT(build/include_directory)
|
||||
|
||||
|
@ -32,19 +31,18 @@
|
|||
class SpellCheck;
|
||||
#endif
|
||||
|
||||
namespace blink {
|
||||
class WebLocalFrame;
|
||||
}
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
namespace extensions {
|
||||
class ExtensionsClient;
|
||||
}
|
||||
namespace content {
|
||||
struct WebPluginInfo;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace electron {
|
||||
|
||||
class ElectronApiServiceImpl;
|
||||
|
||||
#if BUILDFLAG(ENABLE_ELECTRON_EXTENSIONS)
|
||||
class ElectronExtensionsRendererClient;
|
||||
#endif
|
||||
|
|
|
@ -18,7 +18,7 @@ class PrintingHandler;
|
|||
|
||||
namespace mojo {
|
||||
class ServiceFactory;
|
||||
} // namespace mojo
|
||||
}
|
||||
|
||||
namespace electron {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче