| Index: third_party/grpc/src/core/transport/chttp2/status_conversion.h
|
| diff --git a/third_party/WebKit/Source/platform/PrerenderClient.h b/third_party/grpc/src/core/transport/chttp2/status_conversion.h
|
| similarity index 67%
|
| copy from third_party/WebKit/Source/platform/PrerenderClient.h
|
| copy to third_party/grpc/src/core/transport/chttp2/status_conversion.h
|
| index 34fd6a14d4b14bc30175eafd50ec15b107a3b7a2..0ec5b560b8ed0df1f4010abd79d876d91c260eea 100644
|
| --- a/third_party/WebKit/Source/platform/PrerenderClient.h
|
| +++ b/third_party/grpc/src/core/transport/chttp2/status_conversion.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
|
| @@ -29,26 +31,20 @@
|
| *
|
| */
|
|
|
| -#ifndef PrerenderClient_h
|
| -#define PrerenderClient_h
|
| -
|
| -#include "platform/PlatformExport.h"
|
| -#include "platform/heap/Handle.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class PLATFORM_EXPORT PrerenderClient : public GarbageCollectedMixin {
|
| -public:
|
| - virtual ~PrerenderClient() { }
|
| +#ifndef GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_STATUS_CONVERSION_H
|
| +#define GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_STATUS_CONVERSION_H
|
|
|
| - virtual void didStartPrerender() = 0;
|
| - virtual void didStopPrerender() = 0;
|
| - virtual void didSendLoadForPrerender() = 0;
|
| - virtual void didSendDOMContentLoadedForPrerender() = 0;
|
| +#include <grpc/grpc.h>
|
| +#include "src/core/transport/chttp2/http2_errors.h"
|
|
|
| - DEFINE_INLINE_VIRTUAL_TRACE() { }
|
| -};
|
| +/* Conversion of grpc status codes to http2 error codes (for RST_STREAM) */
|
| +grpc_chttp2_error_code grpc_chttp2_grpc_status_to_http2_error(
|
| + grpc_status_code status);
|
| +grpc_status_code grpc_chttp2_http2_error_to_grpc_status(
|
| + grpc_chttp2_error_code error);
|
|
|
| -} // namespace blink
|
| +/* Conversion of HTTP status codes (:status) to grpc status codes */
|
| +grpc_status_code grpc_chttp2_http2_status_to_grpc_status(int status);
|
| +int grpc_chttp2_grpc_status_to_http2_status(grpc_status_code status);
|
|
|
| -#endif
|
| +#endif /* GRPC_INTERNAL_CORE_TRANSPORT_CHTTP2_STATUS_CONVERSION_H */
|
|
|