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

Unified Diff: mojo/shell/package_manager.h

Issue 1701933004: Remove the old package manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@am2
Patch Set: . Created 4 years, 10 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/identity.cc ('k') | mojo/shell/package_manager/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/package_manager.h
diff --git a/mojo/shell/package_manager.h b/mojo/shell/package_manager.h
deleted file mode 100644
index a49b30e1f775a05b725672c44e44ad0a8dffd279..0000000000000000000000000000000000000000
--- a/mojo/shell/package_manager.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2015 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_PACKAGE_MANAGER_H_
-#define MOJO_SHELL_PACKAGE_MANAGER_H_
-
-#include <stdint.h>
-
-#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
-#include "mojo/shell/capability_filter.h"
-#include "mojo/shell/fetcher.h"
-#include "mojo/shell/public/interfaces/shell_client.mojom.h"
-
-class GURL;
-
-namespace mojo {
-namespace shell {
-
-class ApplicationManager;
-class Identity;
-
-// A class implementing this interface assists Shell::ConnectToApplication in
-// fetching the applications located therein.
-class PackageManager {
- public:
- PackageManager() {}
- virtual ~PackageManager() {}
-
- // Called once, during initialization, to tell the package manager about the
- // associated ApplicationManager.
- virtual void SetApplicationManager(ApplicationManager* manager) = 0;
-
- // Called when an app is loaded via an ApplicationLoader.
- virtual void BuiltinAppLoaded(const GURL& url) = 0;
-
- // Asks the delegate to fetch the specified url.
- // TODO(beng): figure out how not to expose Fetcher at all at this layer.
- virtual void FetchRequest(
- URLRequestPtr request,
- const Fetcher::FetchCallback& loader_callback) = 0;
-
- // Determine if a content handler should handle the response received by
- // |fetcher|.
- // |source| is the identity of the application that issued the request.
- // |target_url| is the URL of that may be content that could be handled by a
- // content handler.
- // |target_filter| is a CapabilityFilter that should be applied if a content
- // handler is started to handle |target_url|.
- // |request| is a request for an Application implementation that
- // will be taken by ContentHandler::StartApplication if a content handler ends
- // up handling |target_url|.
- virtual uint32_t HandleWithContentHandler(
- Fetcher* fetcher,
- const Identity& source,
- const GURL& target_url,
- const CapabilityFilter& target_filter,
- InterfaceRequest<shell::mojom::ShellClient>* request) = 0;
-
- // Returns true if a manifest for |url| exists within the PackageManager's
- // application catalog.
- virtual bool IsURLInCatalog(const std::string& url) const = 0;
-
- // Returns the name for the application at |url| from its manifest.
- virtual std::string GetApplicationName(const std::string& url) const = 0;
-
- virtual GURL ResolveMojoURL(const GURL& mojo_url) = 0;
-
- virtual uint32_t StartContentHandler(const Identity& source,
- const Identity& content_handler,
- const GURL& url,
- mojom::ShellClientRequest request) = 0;
-};
-
-} // namespace shell
-} // namespace mojo
-
-#endif // MOJO_SHELL_PACKAGE_MANAGER_H_
« no previous file with comments | « mojo/shell/identity.cc ('k') | mojo/shell/package_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698