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

Issue 10818013: Native Messaging! (Closed)

Created:
8 years, 5 months ago by eaugusti
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Native messaging now uses the MessageService back-end. BUG=142915 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156678

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Everything is Different! Merged with MessageService #

Total comments: 45

Patch Set 3 : #

Total comments: 69

Patch Set 4 : MultiPlatform and UnitTest! #

Total comments: 33

Patch Set 5 : Added Example #

Total comments: 3

Patch Set 6 : Added an api test and converted rb to py #

Patch Set 7 : Clang Fix #

Patch Set 8 : Binary resources are in #

Patch Set 9 : Appease The Windows #

Patch Set 10 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1774 lines, -163 lines) Patch
A chrome/browser/extensions/api/messaging/extension_message_port.h View 1 2 3 4 5 6 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/extension_message_port.cc View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.h View 1 2 3 4 5 6 7 8 9 7 chunks +74 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 8 9 16 chunks +186 lines, -146 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_port.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_port.cc View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_process_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +178 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_process_host.cc View 1 2 3 4 5 6 7 8 9 1 chunk +223 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_process_host_posix.cc View 1 2 3 4 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_process_host_unittest_posix.cc View 1 2 3 4 5 6 7 8 9 1 chunk +177 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_message_process_host_win.cc View 1 2 3 4 5 6 7 8 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_messaging_apitest_posix.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_process_launcher.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/native_process_launcher_win.cc View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_system.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/message_handler.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.h View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 5 6 7 2 chunks +36 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension.json View 1 2 3 4 5 2 chunks +62 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/extensions/extension.html View 1 2 3 4 chunks +224 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.cc View 1 3 chunks +34 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/extension_custom_bindings.js View 1 2 5 chunks +43 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/miscellaneous_bindings.js View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/native_messaging/manifest.json View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/native_messaging/test.js View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
eaugusti
8 years, 5 months ago (2012-07-23 21:35:31 UTC) #1
Aaron Boodman
https://chromiumcodereview.appspot.com/10818013/diff/4001/chrome/browser/extensions/api/native_message/native_message_api.cc File chrome/browser/extensions/api/native_message/native_message_api.cc (right): https://chromiumcodereview.appspot.com/10818013/diff/4001/chrome/browser/extensions/api/native_message/native_message_api.cc#newcode53 chrome/browser/extensions/api/native_message/native_message_api.cc:53: if (!CommandLine::ForCurrentProcess()->HasSwitch( Can you also make this only work ...
8 years, 5 months ago (2012-07-23 22:30:17 UTC) #2
Matt Perry
Here's some preliminary comments. https://chromiumcodereview.appspot.com/10818013/diff/4001/chrome/browser/extensions/api/native_message/native_message_api.cc File chrome/browser/extensions/api/native_message/native_message_api.cc (right): https://chromiumcodereview.appspot.com/10818013/diff/4001/chrome/browser/extensions/api/native_message/native_message_api.cc#newcode22 chrome/browser/extensions/api/native_message/native_message_api.cc:22: const char kNativeClientDir[] = "native-hosts"; ...
8 years, 5 months ago (2012-07-23 23:47:03 UTC) #3
eaugusti
This is still a bit hacky, and linux (posix?) only, but this shows the new ...
8 years, 4 months ago (2012-08-08 22:12:10 UTC) #4
Matt Perry
Looks much cleaner! I like the idea of reusing the MessageService. Pretty cool how nice ...
8 years, 4 months ago (2012-08-09 02:13:00 UTC) #5
Aaron Boodman
Yes, we need to figure out the threading model. I wonder if we can pull ...
8 years, 4 months ago (2012-08-09 18:36:12 UTC) #6
eaugusti
https://chromiumcodereview.appspot.com/10818013/diff/14001/chrome/browser/extensions/message_service.cc File chrome/browser/extensions/message_service.cc (right): https://chromiumcodereview.appspot.com/10818013/diff/14001/chrome/browser/extensions/message_service.cc#newcode52 chrome/browser/extensions/message_service.cc:52: struct MessageService::MessagePort { On 2012/08/09 02:13:00, Matt Perry wrote: ...
8 years, 4 months ago (2012-08-13 23:22:34 UTC) #7
Aaron Boodman
You'll also want to start thinking about how to test it. I think it might ...
8 years, 4 months ago (2012-08-15 03:39:21 UTC) #8
Matt Perry
http://codereview.chromium.org/10818013/diff/14001/chrome/browser/extensions/native_message_process.cc File chrome/browser/extensions/native_message_process.cc (right): http://codereview.chromium.org/10818013/diff/14001/chrome/browser/extensions/native_message_process.cc#newcode26 chrome/browser/extensions/native_message_process.cc:26: const uint32 kMaxMessageDataLength = 4096; On 2012/08/13 23:22:34, eaugusti ...
8 years, 4 months ago (2012-08-16 00:01:35 UTC) #9
eaugusti
This one's a doozy. https://chromiumcodereview.appspot.com/10818013/diff/15018/chrome/browser/extensions/message_port.h File chrome/browser/extensions/message_port.h (right): https://chromiumcodereview.appspot.com/10818013/diff/15018/chrome/browser/extensions/message_port.h#newcode8 chrome/browser/extensions/message_port.h:8: #include "chrome/browser/extensions/message_service.h" On 2012/08/15 03:39:21, ...
8 years, 4 months ago (2012-08-21 23:08:34 UTC) #10
Matt Perry
Looking good! You'll need to add _win.cc files, even if they just contain empty stubs ...
8 years, 4 months ago (2012-08-22 00:02:42 UTC) #11
Aaron Boodman
I'm going to leave the technical bits to Matt until he goes on vacation. At ...
8 years, 4 months ago (2012-08-22 21:47:21 UTC) #12
eaugusti
Still no Windows, but fixed some issues and added an example extension. Is the change ...
8 years, 3 months ago (2012-08-31 23:47:13 UTC) #13
Matt Perry
Awesome. LGTM with one last change. AFAIK, your entry in _permission_features.json is enough. You may ...
8 years, 3 months ago (2012-09-06 00:40:01 UTC) #14
eaugusti
+jam For c/b/renderer_host/chrome_render_message_filter.* Native app converted to python. https://chromiumcodereview.appspot.com/10818013/diff/39001/chrome/browser/extensions/api/messaging/native_message_process_host.h File chrome/browser/extensions/api/messaging/native_message_process_host.h (right): https://chromiumcodereview.appspot.com/10818013/diff/39001/chrome/browser/extensions/api/messaging/native_message_process_host.h#newcode42 chrome/browser/extensions/api/messaging/native_message_process_host.h:42: ScopedNativeMessageProcessHost; ...
8 years, 3 months ago (2012-09-13 17:24:28 UTC) #15
jam
On 2012/09/13 17:24:28, eaugusti wrote: > +jam For c/b/renderer_host/chrome_render_message_filter.* lgtm. for future reference, please see ...
8 years, 3 months ago (2012-09-13 21:27:27 UTC) #16
Isaac (away)
This was reverted because it broke the build (i.e. http://goo.gl/OrILM) Error below: In file included ...
8 years, 2 months ago (2012-09-26 18:40:28 UTC) #17
Isaac (away)
8 years, 2 months ago (2012-09-26 18:41:29 UTC) #18
Arggg sorry.  This is the wrong review too.  We reverted the revert.

Powered by Google App Engine
This is Rietveld 408576698