Index: third_party/grpc/src/core/transport/chttp2/incoming_metadata.h |
diff --git a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h b/third_party/grpc/src/core/transport/chttp2/incoming_metadata.h |
similarity index 60% |
copy from third_party/WebKit/Source/core/svg/SVGNumberTearOff.h |
copy to third_party/grpc/src/core/transport/chttp2/incoming_metadata.h |
index 2f0b457e1e0ac4cd4e3cb773017c44f3ff4ada90..ea74cfc64b2a7cd57cb977dd477341b8fea886c8 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGNumberTearOff.h |
+++ b/third_party/grpc/src/core/transport/chttp2/incoming_metadata.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2014 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,32 +28,33 @@ |
* 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 SVGNumberTearOff_h |
-#define SVGNumberTearOff_h |
- |
-#include "bindings/core/v8/ScriptWrappable.h" |
-#include "core/svg/SVGNumber.h" |
-#include "core/svg/properties/SVGPropertyTearOff.h" |
- |
-namespace blink { |
- |
-class SVGNumberTearOff : public SVGPropertyTearOff<SVGNumber>, public ScriptWrappable { |
- DEFINE_WRAPPERTYPEINFO(); |
-public: |
- static SVGNumberTearOff* create(SVGNumber* target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = QualifiedName::null()) |
- { |
- return new SVGNumberTearOff(target, contextElement, propertyIsAnimVal, attributeName); |
- } |
- |
- void setValue(float, ExceptionState&); |
- float value() { return target()->value(); } |
- |
-protected: |
- SVGNumberTearOff(SVGNumber*, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = QualifiedName::null()); |
-}; |
- |
-} // namespace blink |
- |
-#endif // SVGNumberTearOff_h |
+#ifndef GRPC_INTERNAL_CORE_CHTTP2_INCOMING_METADATA_H |
+#define GRPC_INTERNAL_CORE_CHTTP2_INCOMING_METADATA_H |
+ |
+#include "src/core/transport/transport.h" |
+ |
+typedef struct { |
+ grpc_linked_mdelem *elems; |
+ size_t count; |
+ size_t capacity; |
+ gpr_timespec deadline; |
+ int published; |
+} grpc_chttp2_incoming_metadata_buffer; |
+ |
+/** assumes everything initially zeroed */ |
+void grpc_chttp2_incoming_metadata_buffer_init( |
+ grpc_chttp2_incoming_metadata_buffer *buffer); |
+void grpc_chttp2_incoming_metadata_buffer_destroy( |
+ grpc_chttp2_incoming_metadata_buffer *buffer); |
+void grpc_chttp2_incoming_metadata_buffer_publish( |
+ grpc_chttp2_incoming_metadata_buffer *buffer, grpc_metadata_batch *batch); |
+ |
+void grpc_chttp2_incoming_metadata_buffer_add( |
+ grpc_chttp2_incoming_metadata_buffer *buffer, grpc_mdelem *elem); |
+void grpc_chttp2_incoming_metadata_buffer_set_deadline( |
+ grpc_chttp2_incoming_metadata_buffer *buffer, gpr_timespec deadline); |
+ |
+#endif /* GRPC_INTERNAL_CORE_CHTTP2_INCOMING_METADATA_H */ |