| Index: third_party/grpc/src/core/channel/client_channel.h
|
| diff --git a/third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp b/third_party/grpc/src/core/channel/client_channel.h
|
| similarity index 53%
|
| copy from third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp
|
| copy to third_party/grpc/src/core/channel/client_channel.h
|
| index 3d79140f1134d7c033ba9b47b2f5f1e4f35ce8ac..d9bc4971f1ae51837b858186982e62d3f58815a3 100644
|
| --- a/third_party/WebKit/Source/web/WebTextCheckingCompletionImpl.cpp
|
| +++ b/third_party/grpc/src/core/channel/client_channel.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2009 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,36 +28,36 @@
|
| * 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 "web/WebTextCheckingCompletionImpl.h"
|
| -
|
| -#include "platform/text/TextCheckerClient.h"
|
| -#include "public/platform/WebVector.h"
|
| -#include "public/web/WebTextCheckingResult.h"
|
| -#include "web/EditorClientImpl.h"
|
| -#include "wtf/Assertions.h"
|
| -
|
| -namespace blink {
|
| -
|
| -static Vector<TextCheckingResult> toCoreResults(const WebVector<WebTextCheckingResult>& results)
|
| -{
|
| - Vector<TextCheckingResult> coreResults;
|
| - for (size_t i = 0; i < results.size(); ++i)
|
| - coreResults.append(results[i]);
|
| - return coreResults;
|
| -}
|
| -
|
| -void WebTextCheckingCompletionImpl::didFinishCheckingText(const WebVector<WebTextCheckingResult>& results)
|
| -{
|
| - m_request->didSucceed(toCoreResults(results));
|
| - delete this;
|
| -}
|
| -
|
| -void WebTextCheckingCompletionImpl::didCancelCheckingText()
|
| -{
|
| - m_request->didCancel();
|
| - delete this;
|
| -}
|
| -
|
| -} // namespace blink
|
| +#ifndef GRPC_INTERNAL_CORE_CHANNEL_CLIENT_CHANNEL_H
|
| +#define GRPC_INTERNAL_CORE_CHANNEL_CLIENT_CHANNEL_H
|
| +
|
| +#include "src/core/channel/channel_stack.h"
|
| +#include "src/core/client_config/resolver.h"
|
| +
|
| +/* A client channel is a channel that begins disconnected, and can connect
|
| + to some endpoint on demand. If that endpoint disconnects, it will be
|
| + connected to again later.
|
| +
|
| + Calls on a disconnected client channel are queued until a connection is
|
| + established. */
|
| +
|
| +extern const grpc_channel_filter grpc_client_channel_filter;
|
| +
|
| +/* post-construction initializer to let the client channel know which
|
| + transport setup it should cancel upon destruction, or initiate when it needs
|
| + a connection */
|
| +void grpc_client_channel_set_resolver(grpc_exec_ctx *exec_ctx,
|
| + grpc_channel_stack *channel_stack,
|
| + grpc_resolver *resolver);
|
| +
|
| +grpc_connectivity_state grpc_client_channel_check_connectivity_state(
|
| + grpc_exec_ctx *exec_ctx, grpc_channel_element *elem, int try_to_connect);
|
| +
|
| +void grpc_client_channel_watch_connectivity_state(
|
| + grpc_exec_ctx *exec_ctx, grpc_channel_element *elem, grpc_pollset *pollset,
|
| + grpc_connectivity_state *state, grpc_closure *on_complete);
|
| +
|
| +#endif /* GRPC_INTERNAL_CORE_CHANNEL_CLIENT_CHANNEL_H */
|
|
|