OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_APPLICATION_MANAGER_H_ | 5 #ifndef MOJO_SHELL_APPLICATION_MANAGER_H_ |
6 #define MOJO_SHELL_APPLICATION_MANAGER_H_ | 6 #define MOJO_SHELL_APPLICATION_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 void HandleFetchCallback(scoped_ptr<ConnectToApplicationParams> params, | 110 void HandleFetchCallback(scoped_ptr<ConnectToApplicationParams> params, |
111 scoped_ptr<Fetcher> fetcher); | 111 scoped_ptr<Fetcher> fetcher); |
112 | 112 |
113 void RunNativeApplication(InterfaceRequest<Application> application_request, | 113 void RunNativeApplication(InterfaceRequest<Application> application_request, |
114 bool start_sandboxed, | 114 bool start_sandboxed, |
115 scoped_ptr<Fetcher> fetcher, | 115 scoped_ptr<Fetcher> fetcher, |
116 const base::FilePath& file_path, | 116 const base::FilePath& file_path, |
117 bool path_exists); | 117 bool path_exists); |
118 | 118 |
119 void LoadWithContentHandler( | 119 void LoadWithContentHandler( |
120 const Identity& originator_identity, | 120 const Identity& source, |
121 const CapabilityFilter& originator_filter, | 121 const Identity& content_handler, |
122 const GURL& content_handler_url, | |
123 const std::string& qualifier, | |
124 const CapabilityFilter& filter, | |
125 const Shell::ConnectToApplicationCallback& connect_callback, | 122 const Shell::ConnectToApplicationCallback& connect_callback, |
126 ApplicationInstance* app, | 123 ApplicationInstance* app, |
127 InterfaceRequest<Application> application_request, | 124 InterfaceRequest<Application> application_request, |
128 URLResponsePtr url_response); | 125 URLResponsePtr url_response); |
129 | 126 |
130 // Returns the appropriate loader for |url|, or the default loader if there is | 127 // Returns the appropriate loader for |url|, or the default loader if there is |
131 // no loader configured for the URL. | 128 // no loader configured for the URL. |
132 ApplicationLoader* GetLoaderForURL(const GURL& url); | 129 ApplicationLoader* GetLoaderForURL(const GURL& url); |
133 | 130 |
134 void CleanupRunner(NativeRunner* runner); | 131 void CleanupRunner(NativeRunner* runner); |
(...skipping 16 matching lines...) Expand all Loading... |
151 | 148 |
152 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 149 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
153 }; | 150 }; |
154 | 151 |
155 Shell::ConnectToApplicationCallback EmptyConnectCallback(); | 152 Shell::ConnectToApplicationCallback EmptyConnectCallback(); |
156 | 153 |
157 } // namespace shell | 154 } // namespace shell |
158 } // namespace mojo | 155 } // namespace mojo |
159 | 156 |
160 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ | 157 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ |
OLD | NEW |