summaryrefslogtreecommitdiffstats
path: root/mojo/shell/DEPS
diff options
context:
space:
mode:
authorben <ben@chromium.org>2015-11-12 21:49:51 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-13 05:50:55 +0000
commit0cfab1b202d03d68fc1a8a99bb19b41c8d709a15 (patch)
treef91d7840a69030612258e08b1fae73947e67e6b3 /mojo/shell/DEPS
parent6592c0837cba72a4d7b2ce9ed4c75b32761f2736 (diff)
downloadchromium_src-0cfab1b202d03d68fc1a8a99bb19b41c8d709a15.zip
chromium_src-0cfab1b202d03d68fc1a8a99bb19b41c8d709a15.tar.gz
chromium_src-0cfab1b202d03d68fc1a8a99bb19b41c8d709a15.tar.bz2
Implement CreateInstanceForHandle.
A method on ApplicationManager that allows a process that launches another process to register the launched process with the ApplicationManager. In the Shell, this creates an ApplicationInstance, OutOfProcessNativeRunner and ChildProcessHost. This change makes it possible for a ChildProcessHost to be created for an existing process rather than one it must launch. I think in a future CL I should refactor this class more to make the difference between the type the shell starts and the type someone else starts a bit clearer. Currently it just triggers on whether or not app_path_ is empty which I think is a bit brittle. Adds an apptest for this that: - exposes a service from the apptest - apptest starts a native exe ("driver") via the shell - native exe ("driver") starts another native exe ("target") via base::LaunchProcess - driver creates platform channel and passes one side to target and the other side to the shell via CreateInstanceForHandle - target connects to service exposed by the apptest. R=jam@chromium.org http://crbug.com/551253 Review URL: https://codereview.chromium.org/1434083002 Cr-Commit-Position: refs/heads/master@{#359502}
Diffstat (limited to 'mojo/shell/DEPS')
-rw-r--r--mojo/shell/DEPS11
1 files changed, 11 insertions, 0 deletions
diff --git a/mojo/shell/DEPS b/mojo/shell/DEPS
index f660650..5a272f0 100644
--- a/mojo/shell/DEPS
+++ b/mojo/shell/DEPS
@@ -1,3 +1,14 @@
include_rules = [
"-mojo/runner",
]
+
+specific_include_rules = {
+ "application_manager_apptest_driver.cc": [
+ "+mojo/runner/child",
+ "+mojo/runner/init.h",
+ ],
+ "application_manager_apptest_target.cc": [
+ "+mojo/runner/child",
+ "+mojo/runner/init.h",
+ ],
+}