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

Unified Diff: mojo/shell/dynamic_application_loader.h

Issue 775343004: Move //mojo/shell to //shell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
Index: mojo/shell/dynamic_application_loader.h
diff --git a/mojo/shell/dynamic_application_loader.h b/mojo/shell/dynamic_application_loader.h
deleted file mode 100644
index 7a7b41b5f603de763c997eb37df51aab798406b3..0000000000000000000000000000000000000000
--- a/mojo/shell/dynamic_application_loader.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SHELL_DYNAMIC_APPLICATION_LOADER_H_
-#define MOJO_SHELL_DYNAMIC_APPLICATION_LOADER_H_
-
-#include <map>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
-#include "base/memory/weak_ptr.h"
-#include "mojo/application_manager/application_loader.h"
-#include "mojo/public/cpp/system/core.h"
-#include "mojo/services/public/interfaces/network/network_service.mojom.h"
-#include "mojo/shell/dynamic_service_runner.h"
-#include "url/gurl.h"
-
-namespace mojo {
-namespace shell {
-
-class Context;
-class DynamicServiceRunnerFactory;
-class DynamicServiceRunner;
-
-// An implementation of ApplicationLoader that retrieves a dynamic library
-// containing the implementation of the service and loads/runs it (via a
-// DynamicServiceRunner).
-class DynamicApplicationLoader : public ApplicationLoader {
- public:
- DynamicApplicationLoader(
- Context* context,
- scoped_ptr<DynamicServiceRunnerFactory> runner_factory);
- ~DynamicApplicationLoader() override;
-
- void RegisterContentHandler(const std::string& mime_type,
- const GURL& content_handler_url);
-
- // ApplicationLoader methods:
- void Load(ApplicationManager* manager,
- const GURL& url,
- ScopedMessagePipeHandle shell_handle,
- LoadCallback callback) override;
- void OnApplicationError(ApplicationManager* manager,
- const GURL& url) override;
-
- private:
- class Loader;
- class LocalLoader;
- class NetworkLoader;
-
- typedef std::map<std::string, GURL> MimeTypeToURLMap;
- typedef base::Callback<void(Loader*)> LoaderCompleteCallback;
-
- void LoaderComplete(Loader* loader);
-
- Context* const context_;
- scoped_ptr<DynamicServiceRunnerFactory> runner_factory_;
- NetworkServicePtr network_service_;
- MimeTypeToURLMap mime_type_to_url_;
- ScopedVector<Loader> loaders_;
- LoaderCompleteCallback loader_complete_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(DynamicApplicationLoader);
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_DYNAMIC_APPLICATION_LOADER_H_
« no previous file with comments | « mojo/shell/domain_socket/unix_domain_server_socket_posix_unittest.cc ('k') | mojo/shell/dynamic_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698