Index: third_party/grpc/src/core/transport/chttp2/frame_ping.h |
diff --git a/third_party/WebKit/Source/platform/exported/linux/WebFontRenderStyle.cpp b/third_party/grpc/src/core/transport/chttp2/frame_ping.h |
similarity index 64% |
copy from third_party/WebKit/Source/platform/exported/linux/WebFontRenderStyle.cpp |
copy to third_party/grpc/src/core/transport/chttp2/frame_ping.h |
index 60a41b39a2bb37fd717f247ac114292ed782a2f0..16d7a726186a31108b7130d6e9c68b782f815f73 100644 |
--- a/third_party/WebKit/Source/platform/exported/linux/WebFontRenderStyle.cpp |
+++ b/third_party/grpc/src/core/transport/chttp2/frame_ping.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2010 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2015, 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,29 @@ |
* 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 "public/platform/linux/WebFontRenderStyle.h" |
+#ifndef GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_FRAME_PING_H |
+#define GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_FRAME_PING_H |
-#include "platform/fonts/FontRenderStyle.h" |
+#include "src/core/iomgr/exec_ctx.h" |
+#include <grpc/support/slice.h> |
+#include "src/core/transport/chttp2/frame.h" |
-namespace blink { |
+typedef struct { |
+ uint8_t byte; |
+ uint8_t is_ack; |
+ uint8_t opaque_8bytes[8]; |
+} grpc_chttp2_ping_parser; |
-void WebFontRenderStyle::toFontRenderStyle(FontRenderStyle* out) |
-{ |
- out->useBitmaps = useBitmaps; |
- out->useAutoHint = useAutoHint; |
- out->useHinting = useHinting; |
- out->hintStyle = hintStyle; |
- out->useAntiAlias = useAntiAlias; |
- out->useSubpixelRendering = useSubpixelRendering; |
- out->useSubpixelPositioning = useSubpixelPositioning; |
-} |
+gpr_slice grpc_chttp2_ping_create(uint8_t ack, uint8_t *opaque_8bytes); |
-void WebFontRenderStyle::setDefaults() |
-{ |
- useBitmaps = 2; |
- useAutoHint = 2; |
- useHinting = 2; |
- hintStyle = 0; |
- useAntiAlias = 2; |
- useSubpixelRendering = 2; |
- useSubpixelPositioning = 2; |
-} |
+grpc_chttp2_parse_error grpc_chttp2_ping_parser_begin_frame( |
+ grpc_chttp2_ping_parser *parser, uint32_t length, uint8_t flags); |
+grpc_chttp2_parse_error grpc_chttp2_ping_parser_parse( |
+ grpc_exec_ctx *exec_ctx, void *parser, |
+ grpc_chttp2_transport_parsing *transport_parsing, |
+ grpc_chttp2_stream_parsing *stream_parsing, gpr_slice slice, int is_last); |
-} // namespace blink |
+#endif /* GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_FRAME_PING_H */ |