Index: third_party/grpc/src/core/transport/chttp2/timeout_encoding.h |
diff --git a/third_party/WebKit/Source/core/css/CSSGridLineNamesValue.h b/third_party/grpc/src/core/transport/chttp2/timeout_encoding.h |
similarity index 72% |
copy from third_party/WebKit/Source/core/css/CSSGridLineNamesValue.h |
copy to third_party/grpc/src/core/transport/chttp2/timeout_encoding.h |
index 721b95240ed17d693c679416dde38025cfc2e4ce..9d8756e799d3d8112cfff1c99cf47b2072403600 100644 |
--- a/third_party/WebKit/Source/core/css/CSSGridLineNamesValue.h |
+++ b/third_party/grpc/src/core/transport/chttp2/timeout_encoding.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2013 Igalia, S.L. 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,32 +28,20 @@ |
* 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. |
+ * |
*/ |
-#ifndef CSSGridLineNamesValue_h |
-#define CSSGridLineNamesValue_h |
- |
-#include "core/css/CSSValueList.h" |
-#include "wtf/PassRefPtr.h" |
- |
-namespace blink { |
- |
-class CSSGridLineNamesValue : public CSSValueList { |
-public: |
- static CSSGridLineNamesValue* create() |
- { |
- return new CSSGridLineNamesValue(); |
- } |
- |
- String customCSSText() const; |
+#ifndef GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_TIMEOUT_ENCODING_H |
+#define GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_TIMEOUT_ENCODING_H |
- DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValueList::traceAfterDispatch(visitor); } |
+#include "src/core/support/string.h" |
+#include <grpc/support/time.h> |
-private: |
- CSSGridLineNamesValue(); |
-}; |
+#define GRPC_CHTTP2_TIMEOUT_ENCODE_MIN_BUFSIZE (GPR_LTOA_MIN_BUFSIZE + 1) |
-DEFINE_CSS_VALUE_TYPE_CASTS(CSSGridLineNamesValue, isGridLineNamesValue()); |
-} // namespace blink |
+/* Encode/decode timeouts to the GRPC over HTTP2 format; |
+ encoding may round up arbitrarily */ |
+void grpc_chttp2_encode_timeout(gpr_timespec timeout, char *buffer); |
+int grpc_chttp2_decode_timeout(const char *buffer, gpr_timespec *timeout); |
-#endif |
+#endif /* GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_TIMEOUT_ENCODING_H */ |