| Index: third_party/grpc/src/core/iomgr/tcp_windows.h
|
| diff --git a/third_party/WebKit/public/web/WebColorSuggestion.h b/third_party/grpc/src/core/iomgr/tcp_windows.h
|
| similarity index 66%
|
| copy from third_party/WebKit/public/web/WebColorSuggestion.h
|
| copy to third_party/grpc/src/core/iomgr/tcp_windows.h
|
| index e4132931510ff7a005efbead154f94ba30dc179e..deb3e48293c6b3b917b50ddbc9beacbfc06d290a 100644
|
| --- a/third_party/WebKit/public/web/WebColorSuggestion.h
|
| +++ b/third_party/grpc/src/core/iomgr/tcp_windows.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,28 +28,30 @@
|
| * 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 WebColorSuggestion_h
|
| -#define WebColorSuggestion_h
|
| -
|
| -#include "public/platform/WebColor.h"
|
| -#include "public/platform/WebString.h"
|
| +#ifndef GRPC_INTERNAL_CORE_IOMGR_TCP_WINDOWS_H
|
| +#define GRPC_INTERNAL_CORE_IOMGR_TCP_WINDOWS_H
|
| +/*
|
| + Low level TCP "bottom half" implementation, for use by transports built on
|
| + top of a TCP connection.
|
|
|
| -namespace blink {
|
| + Note that this file does not (yet) include APIs for creating the socket in
|
| + the first place.
|
|
|
| -struct ColorSuggestion;
|
| + All calls passing slice transfer ownership of a slice refcount unless
|
| + otherwise specified.
|
| +*/
|
|
|
| -struct WebColorSuggestion {
|
| - WebColor color;
|
| - WebString label;
|
| +#include "src/core/iomgr/endpoint.h"
|
| +#include "src/core/iomgr/socket_windows.h"
|
|
|
| -#if BLINK_IMPLEMENTATION
|
| - WebColorSuggestion(const ColorSuggestion&);
|
| - WebColorSuggestion& operator=(const ColorSuggestion&);
|
| -#endif
|
| -};
|
| +/* Create a tcp endpoint given a winsock handle.
|
| + * Takes ownership of the handle.
|
| + */
|
| +grpc_endpoint *grpc_tcp_create(grpc_winsocket *socket, char *peer_string);
|
|
|
| -} // namespace blink
|
| +int grpc_tcp_prepare_socket(SOCKET sock);
|
|
|
| -#endif // WebColorSuggestion_h
|
| +#endif /* GRPC_INTERNAL_CORE_IOMGR_TCP_WINDOWS_H */
|
|
|