| Index: third_party/grpc/test/cpp/util/cli_call.h
|
| diff --git a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp b/third_party/grpc/test/cpp/util/cli_call.h
|
| similarity index 61%
|
| copy from third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| copy to third_party/grpc/test/cpp/util/cli_call.h
|
| index ce53beb7255a2b372be5a3c3ace3c7b9c799f08d..2fbc9618b648aebe1aaaea56d27bc88cdcaf2276 100644
|
| --- a/third_party/WebKit/Source/web/WebScopedUserGesture.cpp
|
| +++ b/third_party/grpc/test/cpp/util/cli_call.h
|
| @@ -1,5 +1,7 @@
|
| /*
|
| - * Copyright (C) 2011 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,29 +28,35 @@
|
| * 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/web/WebScopedUserGesture.h"
|
| +#ifndef GRPC_TEST_CPP_UTIL_CLI_CALL_H
|
| +#define GRPC_TEST_CPP_UTIL_CLI_CALL_H
|
|
|
| -#include "platform/UserGestureIndicator.h"
|
| -#include "public/web/WebUserGestureToken.h"
|
| +#include <map>
|
|
|
| -namespace blink {
|
| +#include <grpc++/channel.h>
|
| +#include <grpc++/support/status.h>
|
| +#include <grpc++/support/string_ref.h>
|
|
|
| -void WebScopedUserGesture::initialize()
|
| -{
|
| - m_indicator.reset(new UserGestureIndicator(DefinitelyProcessingNewUserGesture));
|
| -}
|
| +namespace grpc {
|
| +namespace testing {
|
|
|
| -void WebScopedUserGesture::initializeWithToken(const WebUserGestureToken& token)
|
| -{
|
| - if (!token.isNull())
|
| - m_indicator.reset(new UserGestureIndicator(token));
|
| -}
|
| +class CliCall GRPC_FINAL {
|
| + public:
|
| + typedef std::multimap<grpc::string, grpc::string> OutgoingMetadataContainer;
|
| + typedef std::multimap<grpc::string_ref, grpc::string_ref>
|
| + IncomingMetadataContainer;
|
| + static Status Call(std::shared_ptr<grpc::Channel> channel,
|
| + const grpc::string& method, const grpc::string& request,
|
| + grpc::string* response,
|
| + const OutgoingMetadataContainer& metadata,
|
| + IncomingMetadataContainer* server_initial_metadata,
|
| + IncomingMetadataContainer* server_trailing_metadata);
|
| +};
|
|
|
| -void WebScopedUserGesture::reset()
|
| -{
|
| - m_indicator.reset(0);
|
| -}
|
| +} // namespace testing
|
| +} // namespace grpc
|
|
|
| -} // namespace blink
|
| +#endif // GRPC_TEST_CPP_UTIL_CLI_CALL_H
|
|
|