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

Unified Diff: mojo/shell/application_manager.h

Issue 1130353005: Makes content handlers see requestor url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 5 years, 7 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/runner/native_runner_unittest.cc ('k') | mojo/shell/application_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_manager.h
diff --git a/mojo/shell/application_manager.h b/mojo/shell/application_manager.h
index 5db74678c1df36f7b5d8d28c59b370e2b90e6306..8cdf89b0bffb774bbb8494eb4a6e09b52df063bc 100644
--- a/mojo/shell/application_manager.h
+++ b/mojo/shell/application_manager.h
@@ -16,6 +16,7 @@
#include "mojo/public/interfaces/application/service_provider.mojom.h"
#include "mojo/services/network/public/interfaces/network_service.mojom.h"
#include "mojo/shell/application_loader.h"
+#include "mojo/shell/fetcher.h"
#include "mojo/shell/identity.h"
#include "mojo/shell/native_runner.h"
#include "url/gurl.h"
@@ -28,7 +29,6 @@ class SequencedWorkerPool;
namespace mojo {
namespace shell {
-class Fetcher;
class ShellImpl;
class ApplicationManager {
@@ -43,6 +43,12 @@ class ApplicationManager {
// |url| if the scheme is not 'mojo'.
virtual GURL ResolveMojoURL(const GURL& url) = 0;
+ // Asks the delegate to create a Fetcher for the specified url. Return
+ // true on success, false if the default fetcher should be created.
+ virtual bool CreateFetcher(
+ const GURL& url,
+ const Fetcher::FetchCallback& loader_callback) = 0;
+
protected:
virtual ~Delegate() {}
};
@@ -210,6 +216,7 @@ class ApplicationManager {
bool path_exists);
void LoadWithContentHandler(const GURL& content_handler_url,
+ const GURL& requestor_url,
const std::string& qualifier,
InterfaceRequest<Application> application_request,
URLResponsePtr url_response);
« no previous file with comments | « mojo/runner/native_runner_unittest.cc ('k') | mojo/shell/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698