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

Unified Diff: third_party/grpc/src/core/client_config/subchannel_factory.c

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/client_config/subchannel_factory.c
diff --git a/third_party/WebKit/Source/platform/clipboard/ClipboardMimeTypes.cpp b/third_party/grpc/src/core/client_config/subchannel_factory.c
similarity index 73%
copy from third_party/WebKit/Source/platform/clipboard/ClipboardMimeTypes.cpp
copy to third_party/grpc/src/core/client_config/subchannel_factory.c
index 55a3ed6364b1da0b446fab6fe86979122a9fc1db..2c64219e8b03238c30d123c70c882eb38cf7e77c 100644
--- a/third_party/WebKit/Source/platform/clipboard/ClipboardMimeTypes.cpp
+++ b/third_party/grpc/src/core/client_config/subchannel_factory.c
@@ -1,5 +1,7 @@
/*
- * Copyright (c) 2010 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,20 +28,22 @@
* 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 "platform/clipboard/ClipboardMimeTypes.h"
+#include "src/core/client_config/subchannel_factory.h"
-namespace blink {
+void grpc_subchannel_factory_ref(grpc_subchannel_factory* factory) {
+ factory->vtable->ref(factory);
+}
-const char mimeTypeText[] = "text";
-const char mimeTypeTextPlain[] = "text/plain";
-const char mimeTypeTextPlainEtc[] = "text/plain;";
-const char mimeTypeTextHTML[] = "text/html";
-const char mimeTypeURL[] = "url";
-const char mimeTypeTextURIList[] = "text/uri-list";
-const char mimeTypeDownloadURL[] = "downloadurl";
-const char mimeTypeFiles[] = "Files";
-const char mimeTypeImagePng[] = "image/png";
+void grpc_subchannel_factory_unref(grpc_exec_ctx* exec_ctx,
+ grpc_subchannel_factory* factory) {
+ factory->vtable->unref(exec_ctx, factory);
+}
-} // namespace blink
+grpc_subchannel* grpc_subchannel_factory_create_subchannel(
+ grpc_exec_ctx* exec_ctx, grpc_subchannel_factory* factory,
+ grpc_subchannel_args* args) {
+ return factory->vtable->create_subchannel(exec_ctx, factory, args);
+}

Powered by Google App Engine
This is Rietveld 408576698