Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: third_party/grpc/src/core/transport/chttp2/status_conversion.h

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 */
« no previous file with comments | « third_party/grpc/src/core/transport/chttp2/parsing.c ('k') | third_party/grpc/src/core/transport/chttp2/status_conversion.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698