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 */ |