Index: third_party/grpc/src/core/channel/connected_channel.h |
diff --git a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h b/third_party/grpc/src/core/channel/connected_channel.h |
similarity index 65% |
copy from third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h |
copy to third_party/grpc/src/core/channel/connected_channel.h |
index 82bda52ff11ec4860812eb9c8c088ece94af4e69..95c1834bfaab498bc10c6dbf4b8b14d6901d993d 100644 |
--- a/third_party/WebKit/public/platform/modules/webmidi/WebMIDIAccessor.h |
+++ b/third_party/grpc/src/core/channel/connected_channel.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2013 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,27 +28,24 @@ |
* 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 WebMIDIAccessor_h |
-#define WebMIDIAccessor_h |
+#ifndef GRPC_INTERNAL_CORE_CHANNEL_CONNECTED_CHANNEL_H |
+#define GRPC_INTERNAL_CORE_CHANNEL_CONNECTED_CHANNEL_H |
-#include "public/platform/WebString.h" |
+#include "src/core/channel/channel_stack.h" |
-namespace blink { |
+/* A channel filter representing a channel that is on a connected transport. |
+ This filter performs actual sending and receiving of messages. */ |
-class WebMIDIAccessor { |
-public: |
- virtual ~WebMIDIAccessor() { } |
+extern const grpc_channel_filter grpc_connected_channel_filter; |
- virtual void startSession() { } |
- virtual void open(unsigned portIndex) { } |
- // |timeStamp| is measured in milliseconds as Web MIDI spec defines. |
- virtual void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t length, double timeStamp) { } |
- virtual void clear(unsigned portIndex) { } |
- virtual void close(unsigned portIndex) { } |
-}; |
+/* Post construction fixup: set the transport in the connected channel. |
+ Must be called before any call stack using this filter is used. */ |
+void grpc_connected_channel_bind_transport(grpc_channel_stack* channel_stack, |
+ grpc_transport* transport); |
-} // namespace blink |
+grpc_stream* grpc_connected_channel_get_stream(grpc_call_element* elem); |
-#endif // WebMIDIAccessor_h |
+#endif /* GRPC_INTERNAL_CORE_CHANNEL_CONNECTED_CHANNEL_H */ |