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

Unified Diff: mojo/shell/package_manager.h

Issue 1358533004: Move more of ContentHandler handling into PackageManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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
Index: mojo/shell/package_manager.h
diff --git a/mojo/shell/package_manager.h b/mojo/shell/package_manager.h
index 1b46164c31d2adee175ce6688f05af08a48c96ad..0aa102962f73bd90c05305ff2688ba92b910ce1a 100644
--- a/mojo/shell/package_manager.h
+++ b/mojo/shell/package_manager.h
@@ -5,7 +5,9 @@
#ifndef MOJO_SHELL_PACKAGE_MANAGER_H_
#define MOJO_SHELL_PACKAGE_MANAGER_H_
+#include "mojo/application/public/interfaces/application.mojom.h"
#include "mojo/services/network/public/interfaces/url_loader.mojom.h"
+#include "mojo/shell/capability_filter.h"
#include "mojo/shell/fetcher.h"
class GURL;
@@ -14,6 +16,7 @@ namespace mojo {
namespace shell {
class ApplicationManager;
+class Identity;
// A class implementing this interface assists Shell::ConnectToApplication in
// fetching the applications located therein.
@@ -42,12 +45,12 @@ class PackageManager {
// run, unchanged if the return value is false.
// |qualifier| is the Identity qualifier that the content handler application
// instance should be associated with, unchanged if the return value is false.
- virtual bool HandleWithContentHandler(Fetcher* fetcher,
- const GURL& url,
- base::TaskRunner* task_runner,
- URLResponsePtr* new_response,
- GURL* content_handler_url,
- std::string* qualifier) = 0;
+ virtual uint32_t HandleWithContentHandler(
+ Fetcher* fetcher,
+ const Identity& source,
+ const GURL& target_url,
+ const CapabilityFilter& target_filter,
+ InterfaceRequest<Application>* application_request) = 0;
};
} // namespace shell

Powered by Google App Engine
This is Rietveld 408576698