Commit 373af264 authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Remove Blink-relative #includes in precompile_*.h.

Also fixes include guard style.

Bug: 836071
Change-Id: Ib6b268ee2b75e05aef2cec7220d90fa3779830eb
Reviewed-on: https://chromium-review.googlesource.com/1059985Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559003}
parent 2cb02fbf
...@@ -23,6 +23,12 @@ ...@@ -23,6 +23,12 @@
* build without this header, although we rarely test that. * build without this header, although we rarely test that.
*/ */
#ifdef THIRD_PARTY_BLINK_RENDERER_BUILD_MAC_PREFIX_H_
#error You shouldn't include the precompiled header file more than once.
#endif
#define THIRD_PARTY_BLINK_RENDERER_BUILD_MAC_PREFIX_H_
#include <pthread.h> #include <pthread.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h> #include <fcntl.h>
......
...@@ -2,10 +2,11 @@ ...@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#if defined(WinPrecompile_h_) #ifdef THIRD_PARTY_BLINK_RENDERER_BUILD_WIN_PRECOMPILE_H_
#error You shouldn't include the precompiled header file more than once. #error You shouldn't include the precompiled header file more than once.
#endif #endif
#define WinPrecompile_h_
#define THIRD_PARTY_BLINK_RENDERER_BUILD_WIN_PRECOMPILE_H_
// Precompiled header for Blink when built on Windows using // Precompiled header for Blink when built on Windows using
// GYP-generated project files. Not used by other build // GYP-generated project files. Not used by other build
......
...@@ -2,15 +2,16 @@ ...@@ -2,15 +2,16 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#if defined(PrecompileCore_h_) #ifdef THIRD_PARTY_BLINK_RENDERER_CORE_PRECOMPILE_CORE_H_
#error You shouldn't include the precompiled header file more than once. #error You shouldn't include the precompiled header file more than once.
#endif #endif
#define PrecompileCore_h_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PRECOMPILE_CORE_H_
#if defined(_MSC_VER) #if defined(_MSC_VER)
#include "build/win/precompile.h" #include "third_party/blink/renderer/build/win/precompile.h"
#elif defined(__APPLE__) #elif defined(__APPLE__)
#include "build/mac/prefix.h" #include "third_party/blink/renderer/build/mac/prefix.h"
#else #else
#error implement #error implement
#endif #endif
...@@ -18,8 +19,8 @@ ...@@ -18,8 +19,8 @@
// In Blink a lot of operations center around dom and Document, or around // In Blink a lot of operations center around dom and Document, or around
// layout/rendering and LayoutObject. Those two headers are in turn pulling // layout/rendering and LayoutObject. Those two headers are in turn pulling
// in large parts of Blink's other headers which means that every compilation // in large parts of Blink's other headers which means that every compilation
// unit is compiling large parts of Blink. By precompiling Document.h // unit is compiling large parts of Blink. By precompiling document.h
// and LayoutObject.h we only have to compile those parts once rather // and layout_object.h we only have to compile those parts once rather
// than 1500 times. It can make a large difference in compilation // than 1500 times. It can make a large difference in compilation
// times (3-4 times faster). // times (3-4 times faster).
#include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/dom/document.h"
......
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#if defined(PrecompilePlatform_h_) #ifdef THIRD_PARTY_BLINK_RENDERER_PLATFORM_PRECOMPILE_PLATFORM_H_
#error You shouldn't include the precompiled header file more than once. #error You shouldn't include the precompiled header file more than once.
#endif #endif
#define PrecompilePlatform_h_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_PRECOMPILE_PLATFORM_H_
#if defined(_MSC_VER) #if defined(_MSC_VER)
#include "build/win/precompile.h" #include "third_party/blink/renderer/build/win/precompile.h"
#elif defined(__APPLE__) #elif defined(__APPLE__)
#include "build/mac/prefix.h" #include "third_party/blink/renderer/build/mac/prefix.h"
#else #else
#error implement #error implement
#endif #endif
// Include Oilpan's Handle.h by default, as it is included by a significant // Include Oilpan's handle.h by default, as it is included by a significant
// portion of platform/ source files. // portion of platform/ source files.
#include "third_party/blink/renderer/platform/heap/handle.h" #include "third_party/blink/renderer/platform/heap/handle.h"
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