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

Unified Diff: headless/test/data/page_one.html

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « headless/public/util/in_memory_request_job.cc ('k') | headless/test/data/page_two.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/data/page_one.html
diff --git a/headless/test/data/page_one.html b/headless/test/data/page_one.html
new file mode 100644
index 0000000000000000000000000000000000000000..03860452aef4717e65f604ce4930de5adee49d3f
--- /dev/null
+++ b/headless/test/data/page_one.html
@@ -0,0 +1,25 @@
+<!doctype html>
+<head>
+<script>
+// Note define() defines a module in the mojo module dependency
+// system. While we don't expose our module, the callback below only
+// fires after the requested modules have been loaded.
+define([
+ 'headless/lib/embedder_test.mojom',
+ 'mojo/public/js/core',
+ 'mojo/public/js/router',
+ 'content/public/renderer/frame_service_registry',
+ ], function(embedderMojom, mojoCore, routerModule,
+ serviceProvider) {
+ var testEmbedderService =
+ new embedderMojom.TestEmbedderService.proxyClass(
+ new routerModule.Router(
+ serviceProvider.connectToService(
+ embedderMojom.TestEmbedderService.name)));
+
+ // Send a message to the embedder!
+ testEmbedderService.returnTestResult('page one');
+});
+</script>
+</head>
+<body><h1>Page one</h1></body>
« no previous file with comments | « headless/public/util/in_memory_request_job.cc ('k') | headless/test/data/page_two.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698