| 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);
|
|
|