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

Unified Diff: mojo/go/system/embedder/embedder.go

Issue 556813003: Add Go build support for GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: brettw feedback Created 6 years, 3 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: mojo/go/system/embedder/embedder.go
diff --git a/media/base/browser_cdm.cc b/mojo/go/system/embedder/embedder.go
similarity index 55%
copy from media/base/browser_cdm.cc
copy to mojo/go/system/embedder/embedder.go
index 2c44e1652ad09cf59125a471c051a86609347325..6f605dfd5e0f4b0176a6dc91e3ec6a343dda31ad 100644
--- a/media/base/browser_cdm.cc
+++ b/mojo/go/system/embedder/embedder.go
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "media/base/browser_cdm.h"
+package embedder;
-namespace media {
+/*
+#include "mojo/go/c_embedder/c_embedder.h"
+*/
+import "C"
-BrowserCdm::BrowserCdm() {
+func InitializeMojoEmbedder() {
+ C.InitializeMojoEmbedder();
}
-
-BrowserCdm::~BrowserCdm() {
-}
-
-} // namespace media

Powered by Google App Engine
This is Rietveld 408576698