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

Unified Diff: third_party/grpc/src/core/iomgr/iocp_windows.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « third_party/grpc/src/core/iomgr/fd_posix.c ('k') | third_party/grpc/src/core/iomgr/iocp_windows.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « third_party/grpc/src/core/iomgr/fd_posix.c ('k') | third_party/grpc/src/core/iomgr/iocp_windows.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698