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

Unified Diff: third_party/grpc/src/core/transport/chttp2/incoming_metadata.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/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 */
« no previous file with comments | « third_party/grpc/src/core/transport/chttp2/huffsyms.c ('k') | third_party/grpc/src/core/transport/chttp2/incoming_metadata.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698