Commit b6f4017f authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

blink: Reduce the size of execution_context.h

execution_context.h is used in 4,800+ compilation units, and this CL
reduces its estimated expanded size from 3.17MB to 1.95MB.

This CL removes #includes for single_thread_task_runner.h,
security_context.h, and kurl.h from execution_context.h.

Bug: 242216
Change-Id: I2e37b1c58902a58ba3370c26a5a38513ca1e3cbc
Reviewed-on: https://chromium-review.googlesource.com/1102293Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568307}
parent 232549f0
...@@ -32,18 +32,19 @@ ...@@ -32,18 +32,19 @@
#include "base/location.h" #include "base/location.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/single_thread_task_runner.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/dom/context_lifecycle_notifier.h" #include "third_party/blink/renderer/core/dom/context_lifecycle_notifier.h"
#include "third_party/blink/renderer/core/dom/context_lifecycle_observer.h" #include "third_party/blink/renderer/core/dom/context_lifecycle_observer.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/platform/heap/handle.h" #include "third_party/blink/renderer/platform/heap/handle.h"
#include "third_party/blink/renderer/platform/loader/fetch/access_control_status.h" #include "third_party/blink/renderer/platform/loader/fetch/access_control_status.h"
#include "third_party/blink/renderer/platform/supplementable.h" #include "third_party/blink/renderer/platform/supplementable.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/weborigin/referrer_policy.h" #include "third_party/blink/renderer/platform/weborigin/referrer_policy.h"
#include "v8/include/v8.h" #include "v8/include/v8.h"
namespace base {
class SingleThreadTaskRunner;
}
namespace service_manager { namespace service_manager {
class InterfaceProvider; class InterfaceProvider;
} }
...@@ -51,16 +52,19 @@ class InterfaceProvider; ...@@ -51,16 +52,19 @@ class InterfaceProvider;
namespace blink { namespace blink {
class ConsoleMessage; class ConsoleMessage;
class ContentSecurityPolicy;
class CoreProbeSink; class CoreProbeSink;
class DOMTimerCoordinator; class DOMTimerCoordinator;
class ErrorEvent; class ErrorEvent;
class EventTarget; class EventTarget;
class FrameOrWorkerScheduler; class FrameOrWorkerScheduler;
class InterfaceInvalidator; class InterfaceInvalidator;
class KURL;
class LocalDOMWindow; class LocalDOMWindow;
class PausableObject; class PausableObject;
class PublicURLManager; class PublicURLManager;
class ResourceFetcher; class ResourceFetcher;
class SecurityContext;
class SecurityOrigin; class SecurityOrigin;
class ScriptState; class ScriptState;
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_HTML_FORM_CONTROL_ELEMENT_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_HTML_FORM_CONTROL_ELEMENT_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_HTML_FORM_CONTROL_ELEMENT_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_FORMS_HTML_FORM_CONTROL_ELEMENT_H_
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/public/web/web_autofill_state.h" #include "third_party/blink/public/web/web_autofill_state.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/html/forms/form_associated.h" #include "third_party/blink/renderer/core/html/forms/form_associated.h"
......
...@@ -13,6 +13,7 @@ namespace blink { ...@@ -13,6 +13,7 @@ namespace blink {
class HTMLImageElement; class HTMLImageElement;
class HTMLVideoElement; class HTMLVideoElement;
class WebString;
// Media Remoting UI. DOM structure looks like: // Media Remoting UI. DOM structure looks like:
// //
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
#include <memory> #include <memory>
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
#include "base/single_thread_task_runner.h" #include "base/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/connector.h"
#include "mojo/public/cpp/bindings/message.h"
#include "third_party/blink/public/common/message_port/message_port_channel.h" #include "third_party/blink/public/common/message_port/message_port_channel.h"
#include "third_party/blink/public/platform/web_vector.h" #include "third_party/blink/public/platform/web_vector.h"
#include "third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h" #include "third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h"
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_WORKERS_ABSTRACT_WORKER_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_WORKERS_ABSTRACT_WORKER_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_WORKERS_ABSTRACT_WORKER_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_WORKERS_ABSTRACT_WORKER_H_
#include "third_party/blink/public/platform/web_url_request.h"
#include "third_party/blink/renderer/core/core_export.h" #include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/dom/context_lifecycle_observer.h" #include "third_party/blink/renderer/core/dom/context_lifecycle_observer.h"
#include "third_party/blink/renderer/core/dom/events/event_listener.h" #include "third_party/blink/renderer/core/dom/events/event_listener.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "third_party/blink/public/platform/web_icon_sizes_parser.h" #include "third_party/blink/public/platform/web_icon_sizes_parser.h"
#include "third_party/blink/public/platform/web_size.h" #include "third_party/blink/public/platform/web_size.h"
#include "third_party/blink/public/platform/web_string.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h" #include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/inspector/console_message.h" #include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/mediasession/media_image.h" #include "third_party/blink/renderer/modules/mediasession/media_image.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h" #include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_testing.h"
#include "third_party/blink/renderer/core/execution_context/security_context.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h" #include "third_party/blink/renderer/platform/weborigin/kurl.h"
namespace blink { namespace blink {
......
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