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

Unified Diff: mojo/shell/dynamic_service_loader.h

Issue 323593002: Mojo: Use network service to load non-local Mojo Apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/desktop/mojo_main.cc ('k') | mojo/shell/dynamic_service_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/dynamic_service_loader.h
diff --git a/mojo/shell/dynamic_service_loader.h b/mojo/shell/dynamic_service_loader.h
index 0683c10c14fb0a9dff9b3e55adf929e227379830..72bf093e56e093809a83cd8d3a934f904cf12bca 100644
--- a/mojo/shell/dynamic_service_loader.h
+++ b/mojo/shell/dynamic_service_loader.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "mojo/public/cpp/system/core.h"
#include "mojo/service_manager/service_loader.h"
+#include "mojo/services/public/interfaces/network/network_service.mojom.h"
#include "mojo/shell/dynamic_service_runner.h"
#include "mojo/shell/keep_alive.h"
#include "url/gurl.h"
@@ -29,10 +30,7 @@ class DynamicServiceLoader : public ServiceLoader {
scoped_ptr<DynamicServiceRunnerFactory> runner_factory);
virtual ~DynamicServiceLoader();
- // Initiates the dynamic load. If the URL has a mojo: scheme, then the name
- // specified will be modified to the platform's naming scheme. Also, the
- // value specified to the --origin command line argument will be used as the
- // host/port.
+ // ServiceLoader methods:
virtual void LoadService(ServiceManager* manager,
const GURL& url,
ScopedMessagePipeHandle service_handle) OVERRIDE;
@@ -40,15 +38,9 @@ class DynamicServiceLoader : public ServiceLoader {
OVERRIDE;
private:
- class LoadContext;
-
- void AppCompleted(const GURL& url);
-
Context* const context_;
scoped_ptr<DynamicServiceRunnerFactory> runner_factory_;
-
- typedef std::map<GURL, LoadContext*> LoadContextMap;
- LoadContextMap url_to_load_context_;
+ NetworkServicePtr network_service_;
DISALLOW_COPY_AND_ASSIGN(DynamicServiceLoader);
};
« no previous file with comments | « mojo/shell/desktop/mojo_main.cc ('k') | mojo/shell/dynamic_service_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698