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

Unified Diff: third_party/grpc/src/python/grpcio/grpc/_cython/loader.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/python/grpcio/grpc/_cython/loader.c
diff --git a/third_party/WebKit/Source/core/page/PagePopup.h b/third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
similarity index 72%
copy from third_party/WebKit/Source/core/page/PagePopup.h
copy to third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
index 1f6583187d90a45c516e5e729d4c92a4e1037a5a..3b72806ea18cb0426f65cf558225c1327f50e1e2 100644
--- a/third_party/WebKit/Source/core/page/PagePopup.h
+++ b/third_party/grpc/src/python/grpcio/grpc/_cython/loader.c
@@ -1,5 +1,7 @@
/*
- * Copyright (C) 2012 Google Inc. All rights reserved.
+ *
+ * Copyright 2016, 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,41 @@
* 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 PagePopup_h
-#define PagePopup_h
+#include "loader.h"
-#include "wtf/Forward.h"
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cpluslus */
-namespace blink {
+#if GPR_WIN32
-class AXObject;
-class IntRect;
+int pygrpc_load_core(char *path) {
+ HMODULE grpc_c;
+#ifdef GPR_ARCH_32
+ /* Close your eyes for a moment, it'll all be over soon. */
+ char *six = strrchr(path, '6');
+ *six++ = '3';
+ *six = '2';
+#endif
+ grpc_c = LoadLibraryA(path);
+ if (grpc_c) {
+ pygrpc_load_imports(grpc_c);
+ return 1;
+ }
-// A PagePopup object is created by ChromeClient::openPagePopup(), and deleted
-// by ChromeClient::closePagePopup().
-class PagePopup {
-public:
- virtual AXObject* rootAXObject() = 0;
- virtual void setWindowRect(const IntRect&) = 0;
- virtual void postMessage(const String& message) = 0;
+ return 0;
+}
-protected:
- virtual ~PagePopup() { }
-};
+#else
+
+int pygrpc_load_core(char *path) { return 1; }
+
+#endif /* !GPR_WIN32 */
+
+#ifdef __cplusplus
+}
+#endif /* __cpluslus */
-} // namespace blink
-#endif
« no previous file with comments | « third_party/grpc/src/python/grpcio/grpc/_cython/loader.h ('k') | third_party/grpc/src/python/grpcio/grpc/_links/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698