|
Add HeadlessTabSocket
This lets a C++ embedder send messages to and from JS on a HeadlessWebContents.
Note for this to work the headless browser context must have been created with
AddTabSocketMojoBindings and the headless web contents must have been created
with CreateTabSocket(true).
This will not affect chrome.exe --headless because only a C++ embedder can set
the above options.
Note that C++ embedders can already do this and more with the current headless API.
At a later date we will remove the more general headless mojo interface in favor of
TabSockets, unless it turns out somebody is actually using them.
BUG= 546953
Review-Url: https://codereview.chromium.org/2813953002
Cr-Commit-Position: refs/heads/master@{#464327}
Committed: https://chromium.googlesource.com/chromium/src/+/8196d431989e75a2fdbf19ddb42822b5d080da0e
Total comments: 24
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+377 lines, -9 lines) |
Patch |
|
M |
headless/BUILD.gn
|
View
|
1
|
3 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_browser_context_impl.cc
|
View
|
|
3 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
headless/lib/browser/headless_tab_socket_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
headless/lib/browser/headless_tab_socket_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_web_contents_impl.h
|
View
|
|
4 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
headless/lib/browser/headless_web_contents_impl.cc
|
View
|
1
|
4 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/headless_web_contents_browsertest.cc
|
View
|
1
2
3
4
|
2 chunks |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/renderer/headless_content_renderer_client.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/renderer/headless_content_renderer_client.cc
|
View
|
1
2
3
4
|
2 chunks |
+68 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/lib/resources/headless_lib_resources.grd
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
headless/lib/tab_socket.mojom
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/public/headless_browser_context.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -2 lines |
0 comments
|
Download
|
|
A |
headless/public/headless_tab_socket.h
|
View
|
1
2
3
4
|
1 chunk |
+45 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/public/headless_web_contents.h
|
View
|
1
2
3
4
|
5 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
headless/test/headless_browser_test.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
headless/test/headless_browser_test.cc
|
View
|
|
2 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
Total messages: 41 (32 generated)
|