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

Side by Side Diff: shell/application_manager/application_manager.h

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 9 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 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 SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 5 #ifndef SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 6 #define SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 private: 143 private:
144 class ContentHandlerConnection; 144 class ContentHandlerConnection;
145 145
146 typedef std::map<std::string, ApplicationLoader*> SchemeToLoaderMap; 146 typedef std::map<std::string, ApplicationLoader*> SchemeToLoaderMap;
147 typedef std::map<GURL, ApplicationLoader*> URLToLoaderMap; 147 typedef std::map<GURL, ApplicationLoader*> URLToLoaderMap;
148 typedef std::map<GURL, ShellImpl*> URLToShellImplMap; 148 typedef std::map<GURL, ShellImpl*> URLToShellImplMap;
149 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap; 149 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap;
150 typedef std::map<GURL, std::vector<std::string>> URLToArgsMap; 150 typedef std::map<GURL, std::vector<std::string>> URLToArgsMap;
151 typedef std::map<std::string, GURL> MimeTypeToURLMap; 151 typedef std::map<std::string, GURL> MimeTypeToURLMap;
152 152
153 bool ConnectToRunningApplication(const GURL& application_url, 153 bool ConnectToRunningApplication(const GURL& resolved_url,
154 const GURL& requestor_url, 154 const GURL& requestor_url,
155 InterfaceRequest<ServiceProvider>* services, 155 InterfaceRequest<ServiceProvider>* services,
156 ServiceProviderPtr* exposed_services); 156 ServiceProviderPtr* exposed_services);
157 157
158 bool ConnectToApplicationWithLoader( 158 bool ConnectToApplicationWithLoader(
159 const GURL& requested_url, 159 const GURL& requested_url,
160 const GURL& resolved_url, 160 const GURL& resolved_url,
161 const GURL& requestor_url, 161 const GURL& requestor_url,
162 InterfaceRequest<ServiceProvider>* services, 162 InterfaceRequest<ServiceProvider>* services,
163 ServiceProviderPtr* exposed_services, 163 ServiceProviderPtr* exposed_services,
164 ApplicationLoader* loader); 164 ApplicationLoader* loader);
165 165
166 InterfaceRequest<Application> RegisterShell( 166 InterfaceRequest<Application> RegisterShell(
167 const GURL& requested_url, 167 const GURL& requested_url,
168 const GURL& resolved_url, 168 GURL resolved_url,
169 const GURL& requestor_url, 169 const GURL& requestor_url,
170 InterfaceRequest<ServiceProvider> services, 170 InterfaceRequest<ServiceProvider> services,
171 ServiceProviderPtr exposed_services); 171 ServiceProviderPtr exposed_services);
172 172
173 ShellImpl* GetShellImpl(const GURL& url); 173 ShellImpl* GetShellImpl(const GURL& url);
174 174
175 void ConnectToClient(ShellImpl* shell_impl, 175 void ConnectToClient(ShellImpl* shell_impl,
176 const GURL& url, 176 const GURL& resolved_url,
177 const GURL& requestor_url, 177 const GURL& requestor_url,
178 InterfaceRequest<ServiceProvider> services, 178 InterfaceRequest<ServiceProvider> services,
179 ServiceProviderPtr exposed_services); 179 ServiceProviderPtr exposed_services);
180 180
181 void HandleFetchCallback(const GURL& requested_url, 181 void HandleFetchCallback(const GURL& requested_url,
182 const GURL& requestor_url, 182 const GURL& requestor_url,
183 InterfaceRequest<ServiceProvider> services, 183 InterfaceRequest<ServiceProvider> services,
184 ServiceProviderPtr exposed_services, 184 ServiceProviderPtr exposed_services,
185 NativeRunner::CleanupBehavior cleanup_behavior, 185 NativeRunner::CleanupBehavior cleanup_behavior,
186 scoped_ptr<Fetcher> fetcher); 186 scoped_ptr<Fetcher> fetcher);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 MimeTypeToURLMap mime_type_to_url_; 226 MimeTypeToURLMap mime_type_to_url_;
227 ScopedVector<NativeRunner> native_runners_; 227 ScopedVector<NativeRunner> native_runners_;
228 bool disable_cache_; 228 bool disable_cache_;
229 229
230 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 230 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
231 }; 231 };
232 232
233 } // namespace mojo 233 } // namespace mojo
234 234
235 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 235 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698