]> khamidou — GitHub mirrors - electron.git/commitdiff
No longer needs to define node_includes.h at last
authorCheng Zhao <zcbenz@gmail.com>
Mon, 7 Sep 2015 08:29:54 +0000 (16:29 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 7 Sep 2015 08:41:49 +0000 (16:41 +0800)
17 files changed:
atom/browser/api/atom_api_app.cc
atom/browser/api/atom_api_auto_updater.cc
atom/browser/api/atom_api_content_tracing.cc
atom/browser/api/atom_api_cookies.cc
atom/browser/api/atom_api_power_save_blocker.cc
atom/browser/api/atom_api_protocol.cc
atom/browser/api/atom_api_session.cc
atom/browser/api/atom_api_tray.cc
atom/browser/atom_browser_main_parts.cc
atom/common/api/atom_api_asar.cc
atom/common/api/atom_api_shell.cc
atom/common/api/atom_api_v8_util.cc
atom/common/api/event_emitter_caller.cc
atom/common/node_bindings.cc
atom/common/node_includes.h
atom/renderer/api/atom_api_renderer_ipc.cc
atom/renderer/atom_render_view_observer.cc

index c25b3be5f4d6e4a5cfe63c8e32b41bf3194b4d95..e2d265c5da39222d2c1eca13d2fe35de554b7d0b 100644 (file)
@@ -19,6 +19,7 @@
 #include "atom/browser/api/atom_api_web_contents.h"
 #include "atom/common/native_mate_converters/callback.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
+#include "atom/common/node_includes.h"
 #include "base/command_line.h"
 #include "base/environment.h"
 #include "base/files/file_path.h"
@@ -34,8 +35,6 @@
 #include "base/strings/utf_string_conversions.h"
 #endif
 
-#include "atom/common/node_includes.h"
-
 using atom::Browser;
 
 namespace mate {
index 1691ac103e9690bab1d2f3ede2cb46a449553f31..250aa3e45f6422a4e53a2bfb26effd7e763b2b56 100644 (file)
@@ -7,11 +7,10 @@
 #include "base/time/time.h"
 #include "atom/browser/auto_updater.h"
 #include "atom/browser/browser.h"
+#include "atom/common/node_includes.h"
 #include "native_mate/dictionary.h"
 #include "native_mate/object_template_builder.h"
 
-#include "atom/common/node_includes.h"
-
 namespace atom {
 
 namespace api {
index e4bf33c7b5c578d6580817750659b1eccda64ade..f29946d1f462c8d650b2d89d02c00608ac6d5f2e 100644 (file)
@@ -7,13 +7,12 @@
 
 #include "atom/common/native_mate_converters/callback.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
+#include "atom/common/node_includes.h"
 #include "base/bind.h"
 #include "base/files/file_util.h"
 #include "content/public/browser/tracing_controller.h"
 #include "native_mate/dictionary.h"
 
-#include "atom/common/node_includes.h"
-
 using content::TracingController;
 
 namespace mate {
index bf56a8dc13bd20bbc8726b18d5a2ffc36c1d774c..4f989eff7275753672521daca463e50b5bf5d4cc 100644 (file)
@@ -20,8 +20,6 @@
 #include "net/url_request/url_request_context.h"
 #include "net/url_request/url_request_context_getter.h"
 
-#include "atom/common/node_includes.h"
-
 using atom::api::Cookies;
 using content::BrowserThread;
 
index c75901cb1e31b8af3264dfea5d2b2b29a70ccedd..58983e6c846a8b161b4f74b271ba978846bfa2dc 100644 (file)
@@ -6,9 +6,9 @@
 
 #include <string>
 
+#include "atom/common/node_includes.h"
 #include "content/public/browser/power_save_blocker.h"
 #include "native_mate/dictionary.h"
-#include "atom/common/node_includes.h"
 
 namespace mate {
 
index f77f3229ed0a88ef06452f3df65d5cef1e622227..661ab1b5cbdd2199ca4037a4406f9284a1dcd5c3 100644 (file)
@@ -12,9 +12,8 @@
 #include "atom/browser/net/url_request_fetch_job.h"
 #include "atom/browser/net/url_request_string_job.h"
 #include "atom/common/native_mate_converters/callback.h"
-#include "native_mate/dictionary.h"
-
 #include "atom/common/node_includes.h"
+#include "native_mate/dictionary.h"
 
 using content::BrowserThread;
 
index 7d31626c1413d1f9c39c455a77e70dd91d4c5219..f07ab8b780453e1658edc3d12c7e7b0e39f81802 100644 (file)
@@ -13,6 +13,7 @@
 #include "atom/common/native_mate_converters/callback.h"
 #include "atom/common/native_mate_converters/gurl_converter.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
+#include "atom/common/node_includes.h"
 #include "base/files/file_path.h"
 #include "base/prefs/pref_service.h"
 #include "base/strings/string_util.h"
@@ -29,8 +30,6 @@
 #include "net/url_request/url_request_context.h"
 #include "net/url_request/url_request_context_getter.h"
 
-#include "atom/common/node_includes.h"
-
 using content::BrowserThread;
 using content::StoragePartition;
 
index 90bcbcf3e2a7b179267f42843804b0e6911f9693..0f5829e19c14f3b96c99070d6e377aa114935c60 100644 (file)
 #include "atom/common/native_mate_converters/gfx_converter.h"
 #include "atom/common/native_mate_converters/image_converter.h"
 #include "atom/common/native_mate_converters/string16_converter.h"
+#include "atom/common/node_includes.h"
 #include "native_mate/constructor.h"
 #include "native_mate/dictionary.h"
 #include "ui/events/event_constants.h"
 #include "ui/gfx/image/image.h"
 
-#include "atom/common/node_includes.h"
-
 namespace atom {
 
 namespace api {
index 31a490464143851a6e9443b753f235aec2b3ce90..61b98dfc40ec22f1546cab57e2733d01b5072d80 100644 (file)
@@ -13,6 +13,7 @@
 #include "atom/browser/node_debugger.h"
 #include "atom/common/api/atom_bindings.h"
 #include "atom/common/node_bindings.h"
+#include "atom/common/node_includes.h"
 #include "base/command_line.h"
 #include "base/thread_task_runner_handle.h"
 #include "chrome/browser/browser_process.h"
@@ -22,8 +23,6 @@
 #include "chrome/browser/ui/libgtk2ui/gtk2_util.h"
 #endif
 
-#include "atom/common/node_includes.h"
-
 namespace atom {
 
 // static
index 24e9ce9b0668b5946fe172ab95c514a906407d39..4ea7d8c5c36203745027e6cfec3af3d87c09613c 100644 (file)
 #include "atom/common/asar/archive.h"
 #include "atom/common/native_mate_converters/callback.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
+#include "atom/common/node_includes.h"
 #include "native_mate/arguments.h"
 #include "native_mate/dictionary.h"
 #include "native_mate/object_template_builder.h"
 #include "native_mate/wrappable.h"
 
-#include "atom/common/node_includes.h"
-
 namespace {
 
 class Archive : public mate::Wrappable {
index 013c5f5c6c84cc40a6f6bf447a08db2cfbf9eb2b..a4599ee0c3593229f9355cd36cd5967d6cd83496 100644 (file)
@@ -7,9 +7,8 @@
 #include "atom/common/platform_util.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
 #include "atom/common/native_mate_converters/gurl_converter.h"
-#include "native_mate/dictionary.h"
-
 #include "atom/common/node_includes.h"
+#include "native_mate/dictionary.h"
 
 namespace {
 
index 21f23a97b456d869adf0eefb3044d429d18b6e6e..bba3399a8dbdb6c7335e21ae557f5f3d0e207398 100644 (file)
@@ -3,11 +3,10 @@
 // found in the LICENSE file.
 
 #include "atom/common/api/object_life_monitor.h"
+#include "atom/common/node_includes.h"
 #include "native_mate/dictionary.h"
 #include "v8/include/v8-profiler.h"
 
-#include "atom/common/node_includes.h"
-
 namespace {
 
 v8::Local<v8::Object> CreateObjectWithName(v8::Isolate* isolate,
index 6b0a07ad414a86d48c828e30947ce5fe8d0caeb6..94eb9ce9e79aefe67ce25e6a674a5a61c04656b8 100644 (file)
@@ -5,11 +5,10 @@
 #include "atom/common/api/event_emitter_caller.h"
 
 #include "atom/common/api/locker.h"
+#include "atom/common/node_includes.h"
 #include "base/memory/scoped_ptr.h"
 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h"
 
-#include "atom/common/node_includes.h"
-
 namespace mate {
 
 namespace internal {
index 09666a470b6c12e335ca11196d29ab2c19e29483..5aec200550ad2f95338d928bc25f703d5b628a48 100644 (file)
@@ -11,6 +11,7 @@
 #include "atom/common/api/locker.h"
 #include "atom/common/atom_command_line.h"
 #include "atom/common/native_mate_converters/file_path_converter.h"
+#include "atom/common/node_includes.h"
 #include "base/command_line.h"
 #include "base/base_paths.h"
 #include "base/files/file_path.h"
@@ -21,8 +22,6 @@
 #include "native_mate/dictionary.h"
 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h"
 
-#include "atom/common/node_includes.h"
-
 using content::BrowserThread;
 
 // Force all builtin modules to be referenced so they can actually run their
index 0c4189b2fac38f6f9ecbc3f58e54fa772f70108c..3876d86229133eecdce6743ad74d3f81e62349de 100644 (file)
@@ -5,6 +5,8 @@
 #ifndef ATOM_COMMON_NODE_INCLUDES_H_
 #define ATOM_COMMON_NODE_INCLUDES_H_
 
+#include "base/logging.h"
+
 // Include common headers for using node APIs.
 
 #define BUILDING_NODE_EXTENSION
index bd0b62656c1d9eb38ab7de002a64916757f4b76b..061293e80d037ed08c9321bcb57e19370b86790f 100644 (file)
@@ -5,13 +5,12 @@
 #include "atom/common/api/api_messages.h"
 #include "atom/common/native_mate_converters/string16_converter.h"
 #include "atom/common/native_mate_converters/value_converter.h"
+#include "atom/common/node_includes.h"
 #include "content/public/renderer/render_view.h"
 #include "native_mate/dictionary.h"
 #include "third_party/WebKit/public/web/WebLocalFrame.h"
 #include "third_party/WebKit/public/web/WebView.h"
 
-#include "atom/common/node_includes.h"
-
 using content::RenderView;
 using blink::WebLocalFrame;
 using blink::WebView;
index 1f199ea445c6e96854a22fb0d1372f57f9655a1f..456ca5ba4b24996d5dff938e43a2f7db373cb645 100644 (file)
@@ -13,6 +13,7 @@
 #include "atom/common/api/api_messages.h"
 #include "atom/common/api/event_emitter_caller.h"
 #include "atom/common/native_mate_converters/value_converter.h"
+#include "atom/common/node_includes.h"
 #include "atom/common/options_switches.h"
 #include "atom/renderer/atom_renderer_client.h"
 #include "base/command_line.h"
@@ -31,8 +32,6 @@
 #include "third_party/WebKit/public/web/WebView.h"
 #include "ui/base/resource/resource_bundle.h"
 
-#include "atom/common/node_includes.h"
-
 namespace atom {
 
 namespace {