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

Side by Side Diff: mojo/shell/package_manager.h

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_H_ 5 #ifndef MOJO_SHELL_PACKAGE_MANAGER_H_
6 #define MOJO_SHELL_PACKAGE_MANAGER_H_ 6 #define MOJO_SHELL_PACKAGE_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" 10 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
11 #include "mojo/shell/capability_filter.h" 11 #include "mojo/shell/capability_filter.h"
12 #include "mojo/shell/fetcher.h" 12 #include "mojo/shell/fetcher.h"
13 #include "mojo/shell/public/interfaces/application.mojom.h" 13 #include "mojo/shell/public/interfaces/shell_client.mojom.h"
14 14
15 class GURL; 15 class GURL;
16 16
17 namespace mojo { 17 namespace mojo {
18 namespace shell { 18 namespace shell {
19 19
20 class ApplicationManager; 20 class ApplicationManager;
21 class Identity; 21 class Identity;
22 22
23 // A class implementing this interface assists Shell::ConnectToApplication in 23 // A class implementing this interface assists Shell::ConnectToApplication in
(...skipping 13 matching lines...) Expand all
37 URLRequestPtr request, 37 URLRequestPtr request,
38 const Fetcher::FetchCallback& loader_callback) = 0; 38 const Fetcher::FetchCallback& loader_callback) = 0;
39 39
40 // Determine if a content handler should handle the response received by 40 // Determine if a content handler should handle the response received by
41 // |fetcher|. 41 // |fetcher|.
42 // |source| is the identity of the application that issued the request. 42 // |source| is the identity of the application that issued the request.
43 // |target_url| is the URL of that may be content that could be handled by a 43 // |target_url| is the URL of that may be content that could be handled by a
44 // content handler. 44 // content handler.
45 // |target_filter| is a CapabilityFilter that should be applied if a content 45 // |target_filter| is a CapabilityFilter that should be applied if a content
46 // handler is started to handle |target_url|. 46 // handler is started to handle |target_url|.
47 // |application_request| is a request for an Application implementation that 47 // |request| is a request for an Application implementation that
48 // will be taken by ContentHandler::StartApplication if a content handler ends 48 // will be taken by ContentHandler::StartApplication if a content handler ends
49 // up handling |target_url|. 49 // up handling |target_url|.
50 virtual uint32_t HandleWithContentHandler( 50 virtual uint32_t HandleWithContentHandler(
51 Fetcher* fetcher, 51 Fetcher* fetcher,
52 const Identity& source, 52 const Identity& source,
53 const GURL& target_url, 53 const GURL& target_url,
54 const CapabilityFilter& target_filter, 54 const CapabilityFilter& target_filter,
55 InterfaceRequest<shell::mojom::Application>* application_request) = 0; 55 InterfaceRequest<shell::mojom::ShellClient>* request) = 0;
56 56
57 // Returns true if a manifest for |url| exists within the PackageManager's 57 // Returns true if a manifest for |url| exists within the PackageManager's
58 // application catalog. 58 // application catalog.
59 virtual bool IsURLInCatalog(const std::string& url) const = 0; 59 virtual bool IsURLInCatalog(const std::string& url) const = 0;
60 60
61 // Returns the name for the application at |url| from its manifest. 61 // Returns the name for the application at |url| from its manifest.
62 virtual std::string GetApplicationName(const std::string& url) const = 0; 62 virtual std::string GetApplicationName(const std::string& url) const = 0;
63 }; 63 };
64 64
65 } // namespace shell 65 } // namespace shell
66 } // namespace mojo 66 } // namespace mojo
67 67
68 #endif // MOJO_SHELL_PACKAGE_MANAGER_H_ 68 #endif // MOJO_SHELL_PACKAGE_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/shell/native_runner.h ('k') | mojo/shell/package_manager/capability_filter_content_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698