Index: third_party/grpc/include/grpc++/grpc++.h |
diff --git a/third_party/WebKit/Source/core/html/URLRegistry.h b/third_party/grpc/include/grpc++/grpc++.h |
similarity index 55% |
copy from third_party/WebKit/Source/core/html/URLRegistry.h |
copy to third_party/grpc/include/grpc++/grpc++.h |
index 77e94e0cb8c8c2be8c1bc4de8eb6bee05c76c0b3..b7d5fb0bbcdc4d58397f1b6197a1f4b3c9adb598 100644 |
--- a/third_party/WebKit/Source/core/html/URLRegistry.h |
+++ b/third_party/grpc/include/grpc++/grpc++.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,38 +28,37 @@ |
* 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 URLRegistry_h |
-#define URLRegistry_h |
- |
-#include "core/CoreExport.h" |
-#include "wtf/text/WTFString.h" |
- |
-namespace blink { |
- |
-class KURL; |
-class SecurityOrigin; |
-class URLRegistry; |
- |
-class CORE_EXPORT URLRegistrable { |
-public: |
- virtual ~URLRegistrable() { } |
- virtual URLRegistry& registry() const = 0; |
-}; |
+/// \mainpage gRPC C++ API |
+/// |
+/// The gRPC C++ API mainly consists of the following classes: |
+/// - grpc::Channel, which represents the connection to an endpoint. See [the |
+/// gRPC Concepts page](http://www.grpc.io/docs/guides/concepts.html) for more |
+/// details. Channels are created by the factory function grpc::CreateChannel. |
+/// - grpc::CompletionQueue, the producer-consumer queue used for all |
+/// asynchronous communication with the gRPC runtime. |
+/// - grpc::ClientContext and grpc::ServerContext, where optional configuration |
+/// for an RPC can be set, such as setting custom metadata to be conveyed to the |
+/// peer, compression settings, authentication, etc. |
+/// - grpc::Server, representing a gRPC server, created by grpc::ServerBuilder. |
+/// |
+/// Refer to the |
+/// [examples](https://github.com/grpc/grpc/blob/master/examples/cpp) |
+/// for code putting these pieces into play. |
-class CORE_EXPORT URLRegistry { |
- USING_FAST_MALLOC(URLRegistry); |
-public: |
- virtual ~URLRegistry() { } |
- virtual void registerURL(SecurityOrigin*, const KURL&, URLRegistrable*) = 0; |
- virtual void unregisterURL(const KURL&) = 0; |
+#ifndef GRPCXX_GRPCXX_H |
+#define GRPCXX_GRPCXX_H |
- // These are optional APIs |
- virtual URLRegistrable* lookup(const String&) { ASSERT_NOT_REACHED(); return nullptr; } |
- virtual bool contains(const String&) { ASSERT_NOT_REACHED(); return false; } |
-}; |
+#include <grpc/grpc.h> |
-} // namespace blink |
+#include <grpc++/channel.h> |
+#include <grpc++/client_context.h> |
+#include <grpc++/completion_queue.h> |
+#include <grpc++/create_channel.h> |
+#include <grpc++/server.h> |
+#include <grpc++/server_builder.h> |
+#include <grpc++/server_context.h> |
-#endif // URLRegistry_h |
+#endif // GRPCXX_GRPCXX_H |