|
|
Implement serial API for Windows.
- Got it working using PlatformFile.
- Noticed threading-constraint violations; refactored APIResourceController to allow for its resources to exist on different threads, depending on the resource type.
- Wondered why I wasn't using PlatformFile for the POSIX version, which would have caused me to build the POSIX version on the file thread to being with.
- Fixed that.
- Once things were working, observed that serial was not yet using ArrayBuffer. Fixed that.
- Simplified ExtensionService's relationship with APIResourceController.
- Hardcode all platforms to set bitrate of 57600.
BUG= 129391, 129483
TEST=Widened scope of existing tests, manually tested with Arduino
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139463
Total comments: 13
Total comments: 1
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+500 lines, -255 lines) |
Patch |
 |
M |
base/platform_file.h
|
View
|
1
2
3
4
|
3 chunks |
+31 lines, -20 lines |
0 comments
|
Download
|
 |
M |
base/platform_file_posix.cc
|
View
|
1
2
3
4
|
3 chunks |
+40 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/platform_file_win.cc
|
View
|
1
2
3
4
|
2 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/api_resource_controller.h
|
View
|
|
2 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/api_resource_controller.cc
|
View
|
3
|
2 chunks |
+71 lines, -18 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_api.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_api.cc
|
View
|
3
|
7 chunks |
+42 lines, -54 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_apitest.cc
|
View
|
|
2 chunks |
+10 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_connection.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_connection.cc
|
View
|
1
2
3
4
|
1 chunk |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_connection_posix.cc
|
View
|
1
2
|
1 chunk |
+20 lines, -35 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_connection_win.cc
|
View
|
1
|
1 chunk |
+23 lines, -27 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_port_enumerator_posix.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc
|
View
|
1
3
|
1 chunk |
+42 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/socket/socket_api.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/usb/usb_api.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.h
|
View
|
|
3 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
|
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/experimental_serial.idl
|
View
|
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/test/data/extensions/api_test/serial/api/background.js
|
View
|
1
2
|
3 chunks |
+114 lines, -43 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|