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

Unified Diff: runtime/bin/socket_patch.dart

Issue 2780063002: Pulled a significant portion of Socket implementation into BaseSocket in order to prepare for the s… (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/socket_patch.dart
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart
index db194b9ffb6a8fe723ddd67564406fdb61f7f9b3..f7a5b1b54449f3396936fba29a7531c4334b6ac8 100644
--- a/runtime/bin/socket_patch.dart
+++ b/runtime/bin/socket_patch.dart
@@ -1080,40 +1080,40 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject {
}
- void nativeSetSocketId(int id) native "Socket_SetSocketId";
- nativeAvailable() native "Socket_Available";
- nativeRead(int len) native "Socket_Read";
- nativeRecvFrom() native "Socket_RecvFrom";
+ void nativeSetSocketId(int id) native "BaseSocket_SetSocketId";
+ nativeAvailable() native "BaseSocket_Available";
+ nativeRead(int len) native "BaseSocket_Read";
+ nativeRecvFrom() native "BaseSocket_RecvFrom";
nativeWrite(List<int> buffer, int offset, int bytes)
- native "Socket_WriteList";
+ native "BaseSocket_WriteList";
nativeSendTo(List<int> buffer, int offset, int bytes,
List<int> address, int port)
- native "Socket_SendTo";
+ native "BaseSocket_SendTo";
nativeCreateConnect(List<int> addr,
int port) native "Socket_CreateConnect";
nativeCreateBindConnect(
List<int> addr, int port, List<int> sourceAddr)
native "Socket_CreateBindConnect";
- bool isBindError(int errorNumber) native "Socket_IsBindError";
+ bool isBindError(int errorNumber) native "BaseSocket_IsBindError";
nativeCreateBindListen(List<int> addr, int port, int backlog, bool v6Only,
bool shared)
native "ServerSocket_CreateBindListen";
nativeCreateBindDatagram(List<int> addr, int port, bool reuseAddress)
native "Socket_CreateBindDatagram";
nativeAccept(_NativeSocket socket) native "ServerSocket_Accept";
- int nativeGetPort() native "Socket_GetPort";
- List nativeGetRemotePeer() native "Socket_GetRemotePeer";
- int nativeGetSocketId() native "Socket_GetSocketId";
- OSError nativeGetError() native "Socket_GetError";
- nativeGetOption(int option, int protocol) native "Socket_GetOption";
+ int nativeGetPort() native "BaseSocket_GetPort";
+ List nativeGetRemotePeer() native "BaseSocket_GetRemotePeer";
+ int nativeGetSocketId() native "BaseSocket_GetSocketId";
+ OSError nativeGetError() native "BaseSocket_GetError";
+ nativeGetOption(int option, int protocol) native "BaseSocket_GetOption";
bool nativeSetOption(int option, int protocol, value)
- native "Socket_SetOption";
+ native "BaseSocket_SetOption";
OSError nativeJoinMulticast(
List<int> addr, List<int> interfaceAddr, int interfaceIndex)
- native "Socket_JoinMulticast";
+ native "BaseSocket_JoinMulticast";
bool nativeLeaveMulticast(
List<int> addr, List<int> interfaceAddr, int interfaceIndex)
- native "Socket_LeaveMulticast";
+ native "BaseSocket_LeaveMulticast";
}

Powered by Google App Engine
This is Rietveld 408576698