|
Remove connect message from Native Messaging API
Previously chrome.extension.connectNative() was accepting a second parameter
for the first message send to the host. It was inconsistent with
chrome.extension.connect() and is not really necessary. Also removed
type field from the native messages.
Also fixed in the test to avoid dependency on external test binary files
(single_message_request.msg and single_message_response.msg).
BUG= 142915
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178171
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+211 lines, -357 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/messaging/message_service.h
|
View
|
1
2
|
2 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/messaging/message_service.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -30 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/messaging/native_message_process_host.h
|
View
|
1
2
|
6 chunks |
+23 lines, -67 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/messaging/native_message_process_host.cc
|
View
|
1
2
3
4
|
5 chunks |
+71 lines, -90 lines |
1 comment
|
Download
|
 |
M |
chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc
|
View
|
1
2
|
1 chunk |
+1 line, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc
|
View
|
1
2
|
7 chunks |
+70 lines, -47 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/chrome_render_message_filter.h
|
View
|
1
2
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/chrome_render_message_filter.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/runtime.json
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/docs/examples/extensions/native_messaging/echo.py
|
View
|
1
2
|
2 chunks |
+6 lines, -19 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/docs/examples/extensions/native_messaging/popup.js
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/extension_messages.h
|
View
|
1
2
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/extensions/runtime_custom_bindings.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/runtime_custom_bindings.js
|
View
|
1
2
3
|
3 chunks |
+10 lines, -25 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/native_messaging/test.js
|
View
|
3
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/native_messaging/native_hosts/echo.py
|
View
|
1
2
|
2 chunks |
+6 lines, -19 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/native_messaging/single_message_request.msg
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/native_messaging/single_message_response.msg
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|