Index: third_party/grpc/src/core/iomgr/iocp_windows.h |
diff --git a/third_party/WebKit/Source/modules/filesystem/FileEntrySync.cpp b/third_party/grpc/src/core/iomgr/iocp_windows.h |
similarity index 60% |
copy from third_party/WebKit/Source/modules/filesystem/FileEntrySync.cpp |
copy to third_party/grpc/src/core/iomgr/iocp_windows.h |
index c5455333503bcfb3389146209ad71acb9c59fd90..8b2b1aeb5c2a950c0e440a19f19040257cc78a3c 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/FileEntrySync.cpp |
+++ b/third_party/grpc/src/core/iomgr/iocp_windows.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015-2016, Google Inc. |
+ * All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -26,34 +28,36 @@ |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
+ * |
*/ |
-#include "modules/filesystem/FileEntrySync.h" |
+#ifndef GRPC_INTERNAL_CORE_IOMGR_IOCP_WINDOWS_H |
+#define GRPC_INTERNAL_CORE_IOMGR_IOCP_WINDOWS_H |
-#include "bindings/core/v8/ExceptionState.h" |
-#include "core/fileapi/File.h" |
-#include "modules/filesystem/FileWriterSync.h" |
+#include <grpc/support/sync.h> |
-namespace blink { |
+#include "src/core/iomgr/socket_windows.h" |
-FileEntrySync::FileEntrySync(DOMFileSystemBase* fileSystem, const String& fullPath) |
- : EntrySync(fileSystem, fullPath) |
-{ |
-} |
+typedef enum { |
+ GRPC_IOCP_WORK_WORK, |
+ GRPC_IOCP_WORK_TIMEOUT, |
+ GRPC_IOCP_WORK_KICK |
+} grpc_iocp_work_status; |
-File* FileEntrySync::file(ExceptionState& exceptionState) |
-{ |
- return filesystem()->createFile(this, exceptionState); |
-} |
+grpc_iocp_work_status grpc_iocp_work(grpc_exec_ctx *exec_ctx, |
+ gpr_timespec deadline); |
+void grpc_iocp_init(void); |
+void grpc_iocp_kick(void); |
+void grpc_iocp_flush(void); |
+void grpc_iocp_shutdown(void); |
+void grpc_iocp_add_socket(grpc_winsocket *); |
-FileWriterSync* FileEntrySync::createWriter(ExceptionState& exceptionState) |
-{ |
- return filesystem()->createWriter(this, exceptionState); |
-} |
+void grpc_socket_notify_on_write(grpc_exec_ctx *exec_ctx, |
+ grpc_winsocket *winsocket, |
+ grpc_closure *closure); |
-DEFINE_TRACE(FileEntrySync) |
-{ |
- EntrySync::trace(visitor); |
-} |
+void grpc_socket_notify_on_read(grpc_exec_ctx *exec_ctx, |
+ grpc_winsocket *winsocket, |
+ grpc_closure *closure); |
-} // namespace blink |
+#endif /* GRPC_INTERNAL_CORE_IOMGR_IOCP_WINDOWS_H */ |