Index: third_party/grpc/test/cpp/util/byte_buffer_proto_helper.h |
diff --git a/third_party/WebKit/Source/core/page/PagePopup.h b/third_party/grpc/test/cpp/util/byte_buffer_proto_helper.h |
similarity index 73% |
copy from third_party/WebKit/Source/core/page/PagePopup.h |
copy to third_party/grpc/test/cpp/util/byte_buffer_proto_helper.h |
index 1f6583187d90a45c516e5e729d4c92a4e1037a5a..42cea59e333701c8e1733c5efa6b97a9315b6401 100644 |
--- a/third_party/WebKit/Source/core/page/PagePopup.h |
+++ b/third_party/grpc/test/cpp/util/byte_buffer_proto_helper.h |
@@ -1,5 +1,7 @@ |
/* |
- * Copyright (C) 2012 Google Inc. All rights reserved. |
+ * |
+ * Copyright 2016, 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,29 +28,26 @@ |
* 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 PagePopup_h |
-#define PagePopup_h |
+#ifndef GRPC_TEST_CPP_UTIL_BYTE_BUFFER_PROTO_HELPER_H |
+#define GRPC_TEST_CPP_UTIL_BYTE_BUFFER_PROTO_HELPER_H |
+ |
+#include <memory> |
-#include "wtf/Forward.h" |
+#include <grpc++/support/byte_buffer.h> |
+#include <grpc++/support/config_protobuf.h> |
-namespace blink { |
+namespace grpc { |
+namespace testing { |
-class AXObject; |
-class IntRect; |
+bool ParseFromByteBuffer(ByteBuffer* buffer, grpc::protobuf::Message* message); |
-// A PagePopup object is created by ChromeClient::openPagePopup(), and deleted |
-// by ChromeClient::closePagePopup(). |
-class PagePopup { |
-public: |
- virtual AXObject* rootAXObject() = 0; |
- virtual void setWindowRect(const IntRect&) = 0; |
- virtual void postMessage(const String& message) = 0; |
+std::unique_ptr<ByteBuffer> SerializeToByteBuffer( |
+ grpc::protobuf::Message* message); |
-protected: |
- virtual ~PagePopup() { } |
-}; |
+} // namespace testing |
+} // namespace grpc |
-} // namespace blink |
-#endif |
+#endif // GRPC_TEST_CPP_UTIL_BYTE_BUFFER_PROTO_HELPER_H |