Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: components/dom_distiller/content/BUILD.gn

Issue 1434433002: Pass distillability updates from renderer to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@model
Patch Set: address tsepez's comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 assert(!is_ios) 5 assert(!is_ios)
6 6
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 8
9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings 9 # GYP version: components/dom_distiller.gypi:dom_distiller_mojo_bindings
10 mojom("mojo_bindings") { 10 mojom("mojo_bindings") {
11 sources = [ 11 sources = [
12 "common/distiller_javascript_service.mojom", 12 "common/distiller_javascript_service.mojom",
13 "common/distiller_page_notifier_service.mojom", 13 "common/distiller_page_notifier_service.mojom",
14 ] 14 ]
15 } 15 }
16 16
17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_common
18 static_library("content_common") {
19 sources = [
20 "common/distiller_messages.cc",
21 "common/distiller_messages.h",
22 ]
23
24 deps = [
25 "//base",
26 "//content/public/common",
27 "//ipc",
28 "//url",
29 ]
30 }
31
17 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser 32 # GYP version: components/dom_distiller.gypi:dom_distiller_content_browser
18 static_library("content_browser") { 33 static_library("content_browser") {
19 sources = [ 34 sources = [
35 "browser/distillability_driver.cc",
36 "browser/distillability_driver.h",
20 "browser/distillable_page_utils.cc", 37 "browser/distillable_page_utils.cc",
21 "browser/distillable_page_utils.h", 38 "browser/distillable_page_utils.h",
22 "browser/distiller_javascript_service_impl.cc", 39 "browser/distiller_javascript_service_impl.cc",
23 "browser/distiller_javascript_service_impl.h", 40 "browser/distiller_javascript_service_impl.h",
24 "browser/distiller_javascript_utils.cc", 41 "browser/distiller_javascript_utils.cc",
25 "browser/distiller_javascript_utils.h", 42 "browser/distiller_javascript_utils.h",
26 "browser/distiller_page_web_contents.cc", 43 "browser/distiller_page_web_contents.cc",
27 "browser/distiller_page_web_contents.h", 44 "browser/distiller_page_web_contents.h",
28 "browser/distiller_ui_handle.h", 45 "browser/distiller_ui_handle.h",
29 "browser/dom_distiller_viewer_source.cc", 46 "browser/dom_distiller_viewer_source.cc",
30 "browser/dom_distiller_viewer_source.h", 47 "browser/dom_distiller_viewer_source.h",
31 "browser/web_contents_main_frame_observer.cc", 48 "browser/web_contents_main_frame_observer.cc",
32 "browser/web_contents_main_frame_observer.h", 49 "browser/web_contents_main_frame_observer.h",
33 ] 50 ]
34 51
35 public_deps = [ 52 public_deps = [
36 "//components/dom_distiller/core", 53 "//components/dom_distiller/core",
37 "//content/public/browser", 54 "//content/public/browser",
38 ] 55 ]
39 deps = [ 56 deps = [
57 ":content_common",
40 ":mojo_bindings", 58 ":mojo_bindings",
41 "//base", 59 "//base",
42 "//components/resources", 60 "//components/resources",
43 "//components/strings", 61 "//components/strings",
44 "//content/public/browser", 62 "//content/public/browser",
45 "//content/public/common", 63 "//content/public/common",
46 "//mojo/environment:chromium", 64 "//mojo/environment:chromium",
47 "//mojo/public/cpp/bindings", 65 "//mojo/public/cpp/bindings",
48 "//net", 66 "//net",
49 "//skia", 67 "//skia",
50 "//sync", 68 "//sync",
51 "//third_party/WebKit/public:blink_headers", 69 "//third_party/WebKit/public:blink_headers",
52 "//ui/base", 70 "//ui/base",
53 "//ui/gfx", 71 "//ui/gfx",
54 "//url", 72 "//url",
55 ] 73 ]
56 74
57 if (is_android) { 75 if (is_android) {
58 sources += [ 76 sources += [
59 "browser/distillable_page_utils_android.cc", 77 "browser/distillable_page_utils_android.cc",
60 "browser/distillable_page_utils_android.h", 78 "browser/distillable_page_utils_android.h",
61 ] 79 ]
62 deps += [ ":jni_headers" ] 80 deps += [ ":jni_headers" ]
63 } 81 }
64 } 82 }
65 83
66 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer 84 # GYP version: components/dom_distiller.gypi:dom_distiller_content_renderer
67 static_library("content_renderer") { 85 static_library("content_renderer") {
68 sources = [ 86 sources = [
87 "renderer/distillability_agent.cc",
88 "renderer/distillability_agent.h",
69 "renderer/distiller_js_render_frame_observer.cc", 89 "renderer/distiller_js_render_frame_observer.cc",
70 "renderer/distiller_js_render_frame_observer.h", 90 "renderer/distiller_js_render_frame_observer.h",
71 "renderer/distiller_native_javascript.cc", 91 "renderer/distiller_native_javascript.cc",
72 "renderer/distiller_native_javascript.h", 92 "renderer/distiller_native_javascript.h",
73 "renderer/distiller_page_notifier_service_impl.cc", 93 "renderer/distiller_page_notifier_service_impl.cc",
74 "renderer/distiller_page_notifier_service_impl.h", 94 "renderer/distiller_page_notifier_service_impl.h",
75 ] 95 ]
76 96
97 public_deps = [
98 "//components/dom_distiller/core/proto",
99 ]
77 deps = [ 100 deps = [
101 ":content_common",
78 ":mojo_bindings", 102 ":mojo_bindings",
79 "//base", 103 "//base",
80 "//content/public/common", 104 "//content/public/common",
81 "//content/public/renderer", 105 "//content/public/renderer",
82 "//gin", 106 "//gin",
83 "//mojo/environment:chromium", 107 "//mojo/environment:chromium",
84 "//mojo/public/cpp/bindings", 108 "//mojo/public/cpp/bindings",
109 "//skia",
85 "//third_party/WebKit/public:blink_headers", 110 "//third_party/WebKit/public:blink_headers",
86 "//v8", 111 "//v8",
87 ] 112 ]
88 } 113 }
89 114
90 if (is_android) { 115 if (is_android) {
91 import("//build/config/android/rules.gni") 116 import("//build/config/android/rules.gni")
92 117
93 generate_jni("jni_headers") { 118 generate_jni("jni_headers") {
94 sources = [ 119 sources = [
95 "../android/java/src/org/chromium/components/dom_distiller/content/Distill ablePageUtils.java", 120 "../android/java/src/org/chromium/components/dom_distiller/content/Distill ablePageUtils.java",
96 ] 121 ]
97 jni_package = "dom_distiller_content" 122 jni_package = "dom_distiller_content"
98 } 123 }
99 } 124 }
100 125
101 source_set("unit_tests") { 126 source_set("unit_tests") {
102 testonly = true 127 testonly = true
103 sources = [ 128 sources = [
104 "browser/dom_distiller_viewer_source_unittest.cc", 129 "browser/dom_distiller_viewer_source_unittest.cc",
105 "browser/web_contents_main_frame_observer_unittest.cc", 130 "browser/web_contents_main_frame_observer_unittest.cc",
106 ] 131 ]
107 deps = [ 132 deps = [
108 ":content_browser", 133 ":content_browser",
109 "//content/test:test_support", 134 "//content/test:test_support",
110 "//testing/gtest", 135 "//testing/gtest",
111 ] 136 ]
112 } 137 }
OLDNEW
« no previous file with comments | « components/dom_distiller.gypi ('k') | components/dom_distiller/content/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698