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

Unified Diff: runtime/bin/directory.h

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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 | « runtime/bin/builtin_impl_sources.gypi ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory.h
diff --git a/runtime/bin/directory.h b/runtime/bin/directory.h
index b038ad1b28feda0b5a6a91d5abcf9ed5dc0f3993..87bea9f540c100964dbb4b806b7e315b2b970c5d 100644
--- a/runtime/bin/directory.h
+++ b/runtime/bin/directory.h
@@ -7,6 +7,7 @@
#include "bin/builtin.h"
#include "bin/dartutils.h"
+#include "bin/native_service.h"
#include "platform/globals.h"
#include "platform/thread.h"
@@ -22,8 +23,8 @@ class DirectoryListing {
class AsyncDirectoryListing : public DirectoryListing {
public:
enum Response {
- kListDirectory = 0,
- kListFile = 1,
+ kListFile = 0,
+ kListDirectory = 1,
kListError = 2,
kListDone = 3
};
@@ -99,10 +100,7 @@ class Directory {
static Dart_Port GetServicePort();
private:
- static dart::Mutex mutex_;
- static int service_ports_size_;
- static Dart_Port* service_ports_;
- static int service_ports_index_;
+ static NativeService directory_service_;
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Directory);
« no previous file with comments | « runtime/bin/builtin_impl_sources.gypi ('k') | runtime/bin/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698