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

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: Created 4 years, 8 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
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",
53 ] 59 ]
54 } 60 }
55 61
56 # GYP: components.gyp:web_restrictions_renderer 62 mojom("interfaces") {
57 static_library("renderer") {
58 sources = [ 63 sources = [
59 "renderer/web_restrictions_gin_wrapper.cc", 64 "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 ] 65 ]
68 } 66 }
69 67
70 generate_jni("test_support_jni_headers") { 68 generate_jni("test_support_jni_headers") {
71 sources = [ 69 sources = [
72 "browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestr ictionsClient.java", 70 "browser/javatest/src/org/chromium/components/webrestrictions/browser/Mock WebRestrictionsClient.java",
73 ] 71 ]
74 jni_package = "web_restrictions" 72 jni_package = "web_restrictions"
75 deps = [ 73 deps = [
76 ":web_restrictions_java", 74 ":web_restrictions_java",
77 ] 75 ]
78 } 76 }
79 77
80 android_library("test_support_java") { 78 android_library("test_support_java") {
81 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions /MockWebRestrictionsClient.java" ] 79 java_files = [ "browser/javatest/src/org/chromium/components/webrestrictions /browser/MockWebRestrictionsClient.java" ]
82 deps = [ 80 deps = [
83 ":web_restrictions_java", 81 ":web_restrictions_java",
84 "//base:base_java", 82 "//base:base_java",
85 ] 83 ]
86 } 84 }
87 85
88 source_set("test_support") { 86 source_set("test_support") {
89 sources = [ 87 sources = [
90 "browser/mock_web_restrictions_client.cc", 88 "browser/mock_web_restrictions_client.cc",
91 "browser/mock_web_restrictions_client.h", 89 "browser/mock_web_restrictions_client.h",
(...skipping 15 matching lines...) Expand all
107 ":test_support", 105 ":test_support",
108 "//base", 106 "//base",
109 "//base/test:test_support", 107 "//base/test:test_support",
110 "//content/test:test_support", 108 "//content/test:test_support",
111 "//net", 109 "//net",
112 "//testing/gtest", 110 "//testing/gtest",
113 "//url", 111 "//url",
114 ] 112 ]
115 } 113 }
116 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698