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

Unified Diff: third_party/grpc/include/grpc/byte_buffer_reader.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
« no previous file with comments | « third_party/grpc/include/grpc/byte_buffer.h ('k') | third_party/grpc/include/grpc/census.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/include/grpc/byte_buffer_reader.h
diff --git a/third_party/WebKit/Source/platform/exported/WebPrerenderingSupport.cpp b/third_party/grpc/include/grpc/byte_buffer_reader.h
similarity index 73%
copy from third_party/WebKit/Source/platform/exported/WebPrerenderingSupport.cpp
copy to third_party/grpc/include/grpc/byte_buffer_reader.h
index 01ff382822a11716d8ec64415748e16d030c7a32..b0e63a6da2b8960bea09bbcee84cf4ebcb559c55 100644
--- a/third_party/WebKit/Source/platform/exported/WebPrerenderingSupport.cpp
+++ b/third_party/grpc/include/grpc/byte_buffer_reader.h
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2012 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,31 @@
* 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.
+ *
*/
-#include "public/platform/WebPrerenderingSupport.h"
+#ifndef GRPC_BYTE_BUFFER_READER_H
+#define GRPC_BYTE_BUFFER_READER_H
-namespace blink {
+#include <grpc/grpc.h>
+#include <grpc/byte_buffer.h>
-WebPrerenderingSupport* WebPrerenderingSupport::s_platform = 0;
+#ifdef __cplusplus
+extern "C" {
+#endif
-void WebPrerenderingSupport::initialize(WebPrerenderingSupport* platform)
-{
- s_platform = platform;
-}
-
-void WebPrerenderingSupport::shutdown()
-{
- s_platform = 0;
-}
+struct grpc_byte_buffer_reader {
+ grpc_byte_buffer *buffer_in;
+ grpc_byte_buffer *buffer_out;
+ /* Different current objects correspond to different types of byte buffers */
+ union {
+ /* Index into a slice buffer's array of slices */
+ unsigned index;
+ } current;
+};
-WebPrerenderingSupport* WebPrerenderingSupport::current()
-{
- return s_platform;
+#ifdef __cplusplus
}
+#endif
-} // namespace blink
+#endif /* GRPC_BYTE_BUFFER_READER_H */
« no previous file with comments | « third_party/grpc/include/grpc/byte_buffer.h ('k') | third_party/grpc/include/grpc/census.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698