Index: components/dom_distiller/content/BUILD.gn |
diff --git a/components/dom_distiller/content/BUILD.gn b/components/dom_distiller/content/BUILD.gn |
index 7f018a9f41ef24d045ff441642d1e9cbd4963504..f1fd8e3dad0f820fe72dcbcdd298aa32ee01d6c7 100644 |
--- a/components/dom_distiller/content/BUILD.gn |
+++ b/components/dom_distiller/content/BUILD.gn |
@@ -4,11 +4,23 @@ |
assert(!is_ios) |
-# GYP version: components/dom_distiller.gypi:dom_distiller_content |
-source_set("content_browser") { |
+import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
+ |
+# GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings |
+mojom("mojo_bindings") { |
+ sources = [ |
+ "common/distiller_javascript_service.mojom", |
+ "common/distiller_page_notifier_service.mojom", |
+ ] |
+} |
+ |
+# GYP version: components/dom_distiller.gypi:dom_distiller_content_browser |
+static_library("content_browser") { |
sources = [ |
"browser/distillable_page_utils.cc", |
"browser/distillable_page_utils.h", |
+ "browser/distiller_javascript_service_impl.cc", |
+ "browser/distiller_javascript_service_impl.h", |
"browser/distiller_javascript_utils.cc", |
"browser/distiller_javascript_utils.h", |
"browser/distiller_page_web_contents.cc", |
@@ -25,12 +37,17 @@ source_set("content_browser") { |
"//content/public/browser", |
] |
deps = [ |
+ ":mojo_bindings", |
"//base", |
"//components/resources", |
"//components/strings", |
+ "//content/public/browser", |
+ "//mojo/environment:chromium", |
"//net", |
"//skia", |
"//sync", |
+ "//third_party/mojo/src/mojo/public/cpp/bindings", |
+ "//third_party/WebKit/public:blink_headers", |
"//ui/gfx", |
"//url", |
] |
@@ -44,6 +61,27 @@ source_set("content_browser") { |
} |
} |
+# GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer |
+static_library("content_renderer") { |
+ sources = [ |
+ "renderer/distiller_js_render_frame_observer.cc", |
+ "renderer/distiller_js_render_frame_observer.h", |
+ "renderer/distiller_native_javascript.cc", |
+ "renderer/distiller_native_javascript.h", |
+ "renderer/distiller_page_notifier_service_impl.cc", |
+ "renderer/distiller_page_notifier_service_impl.h", |
+ ] |
+ |
+ deps = [ |
+ ":mojo_bindings", |
+ "//base", |
+ "//content/public/browser", |
+ "//mojo/environment:chromium", |
+ "//third_party/mojo/src/mojo/public/cpp/bindings", |
+ "//third_party/WebKit/public:blink_headers", |
+ ] |
+} |
+ |
if (is_android) { |
import("//build/config/android/rules.gni") |