| 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& source, | 120 const Identity& originator_identity, |
| 121 const Identity& content_handler, | 121 const CapabilityFilter& originator_filter, |
| 122 const GURL& content_handler_url, |
| 123 const std::string& qualifier, |
| 124 const CapabilityFilter& filter, |
| 122 const Shell::ConnectToApplicationCallback& connect_callback, | 125 const Shell::ConnectToApplicationCallback& connect_callback, |
| 123 ApplicationInstance* app, | 126 ApplicationInstance* app, |
| 124 InterfaceRequest<Application> application_request, | 127 InterfaceRequest<Application> application_request, |
| 125 URLResponsePtr url_response); | 128 URLResponsePtr url_response); |
| 126 | 129 |
| 127 // Returns the appropriate loader for |url|, or the default loader if there is | 130 // Returns the appropriate loader for |url|, or the default loader if there is |
| 128 // no loader configured for the URL. | 131 // no loader configured for the URL. |
| 129 ApplicationLoader* GetLoaderForURL(const GURL& url); | 132 ApplicationLoader* GetLoaderForURL(const GURL& url); |
| 130 | 133 |
| 131 void CleanupRunner(NativeRunner* runner); | 134 void CleanupRunner(NativeRunner* runner); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 148 | 151 |
| 149 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 152 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
| 150 }; | 153 }; |
| 151 | 154 |
| 152 Shell::ConnectToApplicationCallback EmptyConnectCallback(); | 155 Shell::ConnectToApplicationCallback EmptyConnectCallback(); |
| 153 | 156 |
| 154 } // namespace shell | 157 } // namespace shell |
| 155 } // namespace mojo | 158 } // namespace mojo |
| 156 | 159 |
| 157 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ | 160 #endif // MOJO_SHELL_APPLICATION_MANAGER_H_ |
| OLD | NEW |