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

Unified Diff: services/shell/shell.h

Issue 1898433002: Remove shell::Loader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix windows gyp linkage Created 4 years, 8 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 | « services/shell/loader.h ('k') | services/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/shell.h
diff --git a/services/shell/shell.h b/services/shell/shell.h
index fc17adf4cbf67a278b82f18355027e2f363f3d92..f336025f562ea9efaf3d89aa95a8aecad586e669 100644
--- a/services/shell/shell.h
+++ b/services/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 "services/shell/connect_params.h"
-#include "services/shell/loader.h"
#include "services/shell/native_runner.h"
#include "services/shell/public/cpp/capabilities.h"
#include "services/shell/public/cpp/identity.h"
@@ -54,8 +53,7 @@ class Shell : public ShellClient {
// implementations of NativeRunner, e.g. for in or out-of-process execution.
// See native_runner.h and RunNativeApplication().
// |file_task_runner| provides access to a thread to perform file copy
- // operations on. This may be null only in testing environments where
- // applications are loaded via Loader implementations.
+ // operations on.
Shell(std::unique_ptr<NativeRunnerFactory> native_runner_factory,
mojom::ShellClientPtr catalog);
~Shell() override;
@@ -75,15 +73,6 @@ class Shell : public ShellClient {
// called once.
mojom::ShellClientRequest InitInstanceForEmbedder(const std::string& name);
- // Sets the default Loader to be used if not overridden by SetLoaderForName().
- void set_default_loader(std::unique_ptr<Loader> loader) {
- default_loader_ = std::move(loader);
- }
-
- // Sets a Loader to be used for a specific name.
- void SetLoaderForName(std::unique_ptr<Loader> loader,
- const std::string& name);
-
private:
class Instance;
@@ -147,24 +136,10 @@ class Shell : public ShellClient {
mojom::ShellClientPtr client,
mojom::ResolveResultPtr result);
- // Tries to load |target| with an Loader. Returns true if one was registered
- // and it was loaded, in which case |request| is taken.
- bool LoadWithLoader(const Identity& target,
- mojom::ShellClientRequest* request);
-
- // Returns the appropriate loader for |name|, or the default loader if there
- // is no loader configured for the name.
- Loader* GetLoaderForName(const std::string& name);
-
base::WeakPtr<Shell> GetWeakPtr();
void CleanupRunner(NativeRunner* runner);
- // Loader management.
- // Loaders are chosen in the order they are listed here.
- std::map<std::string, Loader*> name_to_loader_;
- std::unique_ptr<Loader> default_loader_;
-
std::map<Identity, Instance*> identity_to_instance_;
// Tracks the names of instances that are allowed to field connection requests
« no previous file with comments | « services/shell/loader.h ('k') | services/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698