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

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

Powered by Google App Engine
This is Rietveld 408576698