| Index: third_party/grpc/src/core/transport/chttp2/frame_rst_stream.h
|
| diff --git a/third_party/WebKit/Source/platform/exported/linux/WebFontRenderStyle.cpp b/third_party/grpc/src/core/transport/chttp2/frame_rst_stream.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_rst_stream.h
|
| index 60a41b39a2bb37fd717f247ac114292ed782a2f0..72ca654c3243b5e69720f4c571411e5911c73cc8 100644
|
| --- a/third_party/WebKit/Source/platform/exported/linux/WebFontRenderStyle.cpp
|
| +++ b/third_party/grpc/src/core/transport/chttp2/frame_rst_stream.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,28 @@
|
| * 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_RST_STREAM_H
|
| +#define GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_FRAME_RST_STREAM_H
|
|
|
| -#include "platform/fonts/FontRenderStyle.h"
|
| +#include <grpc/support/slice.h>
|
| +#include "src/core/transport/chttp2/frame.h"
|
| +#include "src/core/iomgr/exec_ctx.h"
|
|
|
| -namespace blink {
|
| +typedef struct {
|
| + uint8_t byte;
|
| + uint8_t reason_bytes[4];
|
| +} grpc_chttp2_rst_stream_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_rst_stream_create(uint32_t stream_id, uint32_t code);
|
|
|
| -void WebFontRenderStyle::setDefaults()
|
| -{
|
| - useBitmaps = 2;
|
| - useAutoHint = 2;
|
| - useHinting = 2;
|
| - hintStyle = 0;
|
| - useAntiAlias = 2;
|
| - useSubpixelRendering = 2;
|
| - useSubpixelPositioning = 2;
|
| -}
|
| +grpc_chttp2_parse_error grpc_chttp2_rst_stream_parser_begin_frame(
|
| + grpc_chttp2_rst_stream_parser *parser, uint32_t length, uint8_t flags);
|
| +grpc_chttp2_parse_error grpc_chttp2_rst_stream_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_RST_STREAM_H */
|
|
|