Forward declaration for Isolate / Platform in libplatform.h.
authorbulach <bulach@chromium.org>
Tue, 18 Nov 2014 20:29:23 +0000 (12:29 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Nov 2014 20:29:37 +0000 (20:29 +0000)
Reduces dependencies on #include files, making it easier for other
build systems to include this library.

BUG=

Review URL: https://codereview.chromium.org/740493002

Cr-Commit-Position: refs/heads/master@{#25408}

include/libplatform/libplatform.h
samples/lineprocessor.cc
samples/shell.cc
test/unittests/run-all-unittests.cc

index 2125e97..c818fec 100644 (file)
@@ -5,9 +5,11 @@
 #ifndef V8_LIBPLATFORM_LIBPLATFORM_H_
 #define V8_LIBPLATFORM_LIBPLATFORM_H_
 
-#include "include/v8-platform.h"
-
 namespace v8 {
+
+class Isolate;
+class Platform;
+
 namespace platform {
 
 /**
index 69bfab4..ce502f0 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <include/libplatform/libplatform.h>
 #include <include/v8-debug.h>
+#include <include/v8-platform.h>
 
 #include <fcntl.h>
 #include <stdio.h>
index b66e8f7..f84838f 100644 (file)
@@ -28,6 +28,7 @@
 #include <include/v8.h>
 
 #include <include/libplatform/libplatform.h>
+#include <include/v8-platform.h>
 
 #include <assert.h>
 #include <fcntl.h>
index 8c361dd..7c3a7ab 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "include/libplatform/libplatform.h"
 #include "include/v8.h"
+#include "include/v8-platform.h"
 #include "src/base/compiler-specific.h"
 #include "testing/gmock/include/gmock/gmock.h"