commit | 097ff16e877dcfbd2a9f111be01220953bbf98cc | [log] [tgz] |
---|---|---|
author | Kent Tamura <tkent@chromium.org> | Thu Sep 13 03:14:18 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Sep 13 03:14:18 2018 |
tree | 9316d95b6a5208be12727cebc246570c1d9661fb | |
parent | 66345dd275a29c93896b8feab5a0574df70c88ee [diff] |
Move blink::Resource::Type out from blink::Resource, as blink::ResoureType. This CL makes it possible to forward-declare ResourceType, and we can reduce header sizes by avoiding #include "resource.h". - Remove kLastResourceType, which is unused now. - Rename ResourceType in frame_fetch_context.cc to MainResourceType. - InspectorPageAgent::ResourceType has the same name as new ResourceType. We specify the new one as "blink::ResourceType" only in inspector_page_agent.cc This CL reduces pre-processed header sizes of some popular headers significantly. For example: - content_security_policy.h: -0.58MB - layout_object.h: -0.55MB Bug: 242216 Change-Id: I30771361ce7788e4c88c73f670f0f8fc87b3a08e Reviewed-on: https://chromium-review.googlesource.com/1214980 Reviewed-by: Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#590907}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .