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

Unified Diff: mojo/shell/shell.h

Issue 1776513003: Allow client process information to be passed via Connector::Connect(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 | « mojo/shell/public/interfaces/shell_resolver.mojom ('k') | mojo/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/shell.h
diff --git a/mojo/shell/shell.h b/mojo/shell/shell.h
index 407f75ddc77812f16044a122b942b35bc3630cb7..d394f89e7bd29d818058e48ee5ed9c029c3d8cb9 100644
--- a/mojo/shell/shell.h
+++ b/mojo/shell/shell.h
@@ -14,7 +14,6 @@
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_ptr_set.h"
#include "mojo/services/package_manager/package_manager.h"
-#include "mojo/services/package_manager/public/interfaces/shell_resolver.mojom.h"
#include "mojo/shell/connect_params.h"
#include "mojo/shell/loader.h"
#include "mojo/shell/native_runner.h"
@@ -26,6 +25,7 @@
#include "mojo/shell/public/interfaces/shell.mojom.h"
#include "mojo/shell/public/interfaces/shell_client.mojom.h"
#include "mojo/shell/public/interfaces/shell_client_factory.mojom.h"
+#include "mojo/shell/public/interfaces/shell_resolver.mojom.h"
namespace base {
class FilePath;
@@ -128,7 +128,11 @@ class Shell : public ShellClient {
// Removes a Instance when it encounters an error.
void OnInstanceError(Instance* instance);
+ // Returns a running instance matching |identity|.
Instance* GetExistingInstance(const Identity& identity) const;
+ // Like GetExistingInstance, but if no instance for |identity.user_id()| is
+ // found, looks for kRootUserID too.
+ Instance* GetExistingOrRootInstance(const Identity& identity) const;
void NotifyPIDAvailable(uint32_t id, base::ProcessId pid);
@@ -187,7 +191,7 @@ class Shell : public ShellClient {
void CleanupRunner(NativeRunner* runner);
- package_manager::mojom::ShellResolverPtr shell_resolver_;
+ mojom::ShellResolverPtr shell_resolver_;
// Loader management.
// Loaders are chosen in the order they are listed here.
« no previous file with comments | « mojo/shell/public/interfaces/shell_resolver.mojom ('k') | mojo/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698