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

Unified Diff: third_party/grpc/include/grpc/impl/codegen/sync_win32.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
Index: third_party/grpc/include/grpc/impl/codegen/sync_win32.h
diff --git a/third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp b/third_party/grpc/include/grpc/impl/codegen/sync_win32.h
similarity index 77%
copy from third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp
copy to third_party/grpc/include/grpc/impl/codegen/sync_win32.h
index 440f5d472d2474c70699383582f7ce52aec52a3d..1a6596c571ab47b0923fc0cd9ec5603f73a24542 100644
--- a/third_party/WebKit/Source/web/CompositionUnderlineVectorBuilder.cpp
+++ b/third_party/grpc/include/grpc/impl/codegen/sync_win32.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,21 +28,22 @@
* 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 "web/CompositionUnderlineVectorBuilder.h"
+#ifndef GRPC_IMPL_CODEGEN_SYNC_WIN32_H
+#define GRPC_IMPL_CODEGEN_SYNC_WIN32_H
+
+#include <grpc/impl/codegen/sync_generic.h>
-#include "web/CompositionUnderlineBuilder.h"
+typedef struct {
+ CRITICAL_SECTION cs; /* Not an SRWLock until Vista is unsupported */
+ int locked;
+} gpr_mu;
-namespace blink {
+typedef CONDITION_VARIABLE gpr_cv;
-CompositionUnderlineVectorBuilder::CompositionUnderlineVectorBuilder(
- const WebVector<WebCompositionUnderline>& underlines)
-{
- size_t size = underlines.size();
- reserveCapacity(size);
- for (size_t i = 0; i < size; ++i)
- append(CompositionUnderlineBuilder(underlines[i]));
-}
+typedef INIT_ONCE gpr_once;
+#define GPR_ONCE_INIT INIT_ONCE_STATIC_INIT
-} // namespace blink
+#endif /* GRPC_IMPL_CODEGEN_SYNC_WIN32_H */
« no previous file with comments | « third_party/grpc/include/grpc/impl/codegen/sync_posix.h ('k') | third_party/grpc/include/grpc/impl/codegen/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698