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

Unified Diff: mojo/dart/embedder/io/mojo_patch.dart

Issue 1964193002: Dart: Refactors Proxies (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address comments Created 4 years, 7 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
« no previous file with comments | « mojo/dart/embedder/io/internet_address_patch.dart ('k') | mojo/dart/embedder/io/server_socket_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/dart/embedder/io/mojo_patch.dart
diff --git a/mojo/dart/embedder/io/mojo_patch.dart b/mojo/dart/embedder/io/mojo_patch.dart
index 96a62a34cade99c27ba8af2e1eaf9b206dbffaf4..fc059c23639c1fe376a78f323ab22cb035e97027 100644
--- a/mojo/dart/embedder/io/mojo_patch.dart
+++ b/mojo/dart/embedder/io/mojo_patch.dart
@@ -114,10 +114,10 @@ HostResolverProxy _getHostResolver() {
return null;
}
_hostResolver = new HostResolverProxy.unbound();
- networkService.ptr.createHostResolver(_hostResolver);
+ networkService.createHostResolver(_hostResolver);
// Remove the host resolver's handle from the open set because it is not
// under application control and does not affect isolate shutdown.
- _hostResolver.impl.endpoint.handle.pass();
+ _hostResolver.ctrl.endpoint.handle.pass();
return _hostResolver;
}
@@ -141,10 +141,10 @@ Future<DirectoryProxy> _getRootDirectory() async {
assert(files != null);
_rootDirectory = new DirectoryProxy.unbound();
var response =
- await files.ptr.openFileSystem(fileSystemName, _rootDirectory);
+ await files.openFileSystem(fileSystemName, _rootDirectory);
// Remove the root directory's handle from the open set because it is not
// under application control and does not affect isolate shutdown.
- _rootDirectory.impl.endpoint.handle.pass();
+ _rootDirectory.ctrl.endpoint.handle.pass();
// Ensure system temporary directory exists before returning the root
// directory.
@@ -163,13 +163,13 @@ Future<DirectoryProxy> _getSystemTempDirectory() async {
types.kOpenFlagCreate;
_systemTempDirectory = new DirectoryProxy.unbound();
var response =
- await rootDirectory.ptr.openDirectory(systemTempPath,
- _systemTempDirectory,
- flags);
+ await rootDirectory.openDirectory(systemTempPath,
+ _systemTempDirectory,
+ flags);
assert(response.error == types.Error.ok);
// Remove the system temp directory's handle from the open set because it
// is not under application control and does not affect isolate shutdown.
- _systemTempDirectory.impl.endpoint.handle.pass();
+ _systemTempDirectory.ctrl.endpoint.handle.pass();
return _systemTempDirectory;
}
« no previous file with comments | « mojo/dart/embedder/io/internet_address_patch.dart ('k') | mojo/dart/embedder/io/server_socket_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698