|
Web restrictions component.
The Web restrictions component provides a resource throttle that allows Chrome on Android and Webview to restrict URL access using a content provider provided by a different app.
It also allows that content provider to return custom error pages when requests fail, that can then be used by the user to request access to those URLs.
This is intended for use, in particular:
- For supervised users of Webview, where Chrome provides the content provider.
- For enterprise environments, where the content provider will be provided by a third party app.
The individual pieces are:
A content resolver based web restriction provider.
A gin wrapper and a resource throttle to tie it together.
Preliminary code making use of this is in https://codereview.chromium.org/1423713015.
This CL replaces https://codereview.chromium.org/1631603002/
BUG= 569879
Committed: https://crrev.com/d6457207130f1a5abb0d36a27fbf9f4cb31f131f
Cr-Commit-Position: refs/heads/master@{#378601}
Total comments: 34
Total comments: 20
Total comments: 8
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1431 lines, -348 lines) |
Patch |
 |
M |
components/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/OWNERS
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/test/run_all_unittests.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/web_restrictions.gypi
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+81 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/web_restrictions/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+108 lines, -12 lines |
0 comments
|
Download
|
 |
A + |
components/web_restrictions/browser/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsClient.java
|
View
|
1
2
3
4
5
6
|
1 chunk |
+139 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/web_restrictions/browser/java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/javatest/src/org/chromium/components/webrestrictions/MockWebRestrictionsClient.java
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsClientTest.java
|
View
|
1
2
7
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/web_restrictions/browser/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/mock_web_restrictions_client.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/mock_web_restrictions_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_client.h
|
View
|
1
2
3
|
1 chunk |
+101 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_client.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+237 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_client_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_resource_throttle.h
|
View
|
1
|
1 chunk |
+50 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_resource_throttle.cc
|
View
|
1
|
1 chunk |
+62 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/browser/web_restrictions_resource_throttle_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+157 lines, -0 lines |
0 comments
|
Download
|
 |
D |
components/web_restrictions/java/src/org/chromium/components/webrestrictions/WebRestrictionsContentProvider.java
|
View
|
1
|
1 chunk |
+0 lines, -188 lines |
0 comments
|
Download
|
 |
D |
components/web_restrictions/junit/src/org/chromium/components/webrestrictions/WebRestrictionsContentProviderTest.java
|
View
|
1
|
1 chunk |
+0 lines, -139 lines |
0 comments
|
Download
|
 |
A + |
components/web_restrictions/renderer/DEPS
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/renderer/web_restrictions_gin_wrapper.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/web_restrictions/renderer/web_restrictions_gin_wrapper.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
Total messages: 59 (21 generated)
|