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

Side by Side Diff: components/web_restrictions/BUILD.gn

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix final nits Created 4 years, 4 months 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/web_restrictions.gypi ('k') | components/web_restrictions/browser/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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//mojo/public/tools/bindings/mojom.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 8
8 if (is_android) { 9 if (is_android) {
9 # GYP: components.gyp:web_restrictions_java
10 android_library("web_restrictions_java") { 10 android_library("web_restrictions_java") {
11 java_files = [ 11 java_files = [
12 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC ontentProvider.java", 12 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr ictionsContentProvider.java",
13 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC lient.java", 13 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr ictionsClient.java",
14 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr ictionsClientResult.java",
14 ] 15 ]
15 deps = [ 16 deps = [
16 "//base:base_java", 17 "//base:base_java",
17 ] 18 ]
18 } 19 }
19 20
20 # GYP: //components/components_test.gyp:components_junit_tests 21 # GYP: //components/components_test.gyp:components_junit_tests
21 junit_binary("components_web_restrictions_junit_tests") { 22 junit_binary("components_web_restrictions_junit_tests") {
22 java_files = [ 23 java_files = [
23 "browser/junit/src/org/chromium/components/webrestrictions/WebRestrictions ContentProviderTest.java", 24 "browser/junit/src/org/chromium/components/webrestrictions/browser/WebRest rictionsContentProviderTest.java",
24 "browser/junit/src/org/chromium/components/webrestrictions/WebRestrictions ClientTest.java", 25 "browser/junit/src/org/chromium/components/webrestrictions/browser/WebRest rictionsClientTest.java",
25 ] 26 ]
26 deps = [ 27 deps = [
27 ":web_restrictions_java", 28 ":web_restrictions_java",
28 "//base:base_java", 29 "//base:base_java",
29 "//third_party/junit:hamcrest", 30 "//third_party/junit:hamcrest",
30 ] 31 ]
31 } 32 }
32 33
33 generate_jni("web_restrictions_jni_headers") { 34 generate_jni("web_restrictions_jni_headers") {
34 sources = [ 35 sources = [
35 "browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsC lient.java", 36 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr ictionsClient.java",
37 "browser/java/src/org/chromium/components/webrestrictions/browser/WebRestr ictionsClientResult.java",
36 ] 38 ]
37 jni_package = "web_restrictions" 39 jni_package = "web_restrictions"
38 } 40 }
39 41
40 # GYP: components.gyp:web_restrictions_browser 42 # GYP: components.gyp:web_restrictions_browser
41 static_library("browser") { 43 static_library("browser") {
42 sources = [ 44 sources = [
43 "browser/web_restrictions_client.cc", 45 "browser/web_restrictions_client.cc",
44 "browser/web_restrictions_client.h", 46 "browser/web_restrictions_client.h",
47 "browser/web_restrictions_client_result.cc",
48 "browser/web_restrictions_client_result.h",
49 "browser/web_restrictions_mojo_implementation.cc",
50 "browser/web_restrictions_mojo_implementation.h",
45 "browser/web_restrictions_resource_throttle.cc", 51 "browser/web_restrictions_resource_throttle.cc",
46 "browser/web_restrictions_resource_throttle.h", 52 "browser/web_restrictions_resource_throttle.h",
47 ] 53 ]
48 deps = [ 54 deps = [
55 ":interfaces",
49 ":web_restrictions_jni_headers", 56 ":web_restrictions_jni_headers",
50 "//base", 57 "//base",
51 "//content/public/browser", 58 "//content/public/browser",
52 "//net", 59 "//mojo/public/cpp/bindings:bindings",
60 "//net:net",
53 ] 61 ]
54 } 62 }
55 63
56 # GYP: components.gyp:web_restrictions_renderer 64 mojom("interfaces") {
57 static_library("renderer") {
58 sources = [ 65 sources = [
59 "renderer/web_restrictions_gin_wrapper.cc", 66 "interfaces/web_restrictions.mojom",
60 "renderer/web_restrictions_gin_wrapper.h",
61 ]
62 deps = [
63 "//base",
64 "//content/public/renderer",
65 "//gin",
66 "//third_party/WebKit/public:blink_headers",
67 ] 67 ]
68 } 68 }
69 69
70 generate_jni("test_support_jni_headers") { 70 generate_jni("test_support_jni_headers") {
71 sources = [ 71 sources = [
72 "browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestr ictionsClient.java", 72 "browser/javatest/src/org/chromium/components/webrestrictions/browser/Mock WebRestrictionsClient.java",
73 ] 73 ]
74 jni_package = "web_restrictions" 74 jni_package = "web_restrictions"
75 deps = [ 75 deps = [
76 ":web_restrictions_java", 76 ":web_restrictions_java",
77 ] 77 ]
78 } 78 }
79 79
80 android_library("test_support_java") { 80 android_library("test_support_java") {
81 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions /MockWebRestrictionsClient.java" ] 81 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions /browser/MockWebRestrictionsClient.java" ]
82 deps = [ 82 deps = [
83 ":web_restrictions_java", 83 ":web_restrictions_java",
84 "//base:base_java", 84 "//base:base_java",
85 ] 85 ]
86 } 86 }
87 87
88 source_set("test_support") { 88 source_set("test_support") {
89 sources = [ 89 sources = [
90 "browser/mock_web_restrictions_client.cc", 90 "browser/mock_web_restrictions_client.cc",
91 "browser/mock_web_restrictions_client.h", 91 "browser/mock_web_restrictions_client.h",
(...skipping 15 matching lines...) Expand all
107 ":test_support", 107 ":test_support",
108 "//base", 108 "//base",
109 "//base/test:test_support", 109 "//base/test:test_support",
110 "//content/test:test_support", 110 "//content/test:test_support",
111 "//net", 111 "//net",
112 "//testing/gtest", 112 "//testing/gtest",
113 "//url", 113 "//url",
114 ] 114 ]
115 } 115 }
116 } 116 }
OLDNEW
« no previous file with comments | « components/web_restrictions.gypi ('k') | components/web_restrictions/browser/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698