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

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

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 5 #ifndef MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
6 #define MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 6 #define MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GURL& original_url, 122 const GURL& original_url,
123 const GURL& requestor_url, 123 const GURL& requestor_url,
124 ServiceProviderPtr service_provider, 124 ServiceProviderPtr service_provider,
125 ApplicationLoader* loader); 125 ApplicationLoader* loader);
126 126
127 void ConnectToClient(ShellImpl* shell_impl, 127 void ConnectToClient(ShellImpl* shell_impl,
128 const GURL& url, 128 const GURL& url,
129 const GURL& requestor_url, 129 const GURL& requestor_url,
130 ServiceProviderPtr service_provider); 130 ServiceProviderPtr service_provider);
131 131
132 void RegisterLoadedApplication(const GURL& requested_url, 132 void LoadWithContentHandler(const GURL& content_handler_url,
133 const GURL& resolved_url, 133 ScopedMessagePipeHandle shell_handle,
134 const GURL& requestor_url, 134 URLResponsePtr url_response);
135 ServiceProviderPtr service_provider,
136 ScopedMessagePipeHandle* shell_handle);
137
138 void LoadWithContentHandler(const GURL& requested_url,
139 const GURL& resolved_url,
140 const GURL& requestor_url,
141 const GURL& content_handler_url,
142 URLResponsePtr url_response,
143 ServiceProviderPtr service_provider);
144 135
145 // Return the appropriate loader for |url|. This can return NULL if there is 136 // Return the appropriate loader for |url|. This can return NULL if there is
146 // no default loader configured. 137 // no default loader configured.
147 ApplicationLoader* GetLoaderForURL(const GURL& url, 138 ApplicationLoader* GetLoaderForURL(const GURL& url,
148 IncludeDefaultLoader fallback); 139 IncludeDefaultLoader fallback);
149 140
150 // Removes a ShellImpl when it encounters an error. 141 // Removes a ShellImpl when it encounters an error.
151 void OnShellImplError(ShellImpl* shell_impl); 142 void OnShellImplError(ShellImpl* shell_impl);
152 // 143 //
153 // Removes a ContentHandler when it encounters an error. 144 // Removes a ContentHandler when it encounters an error.
(...skipping 15 matching lines...) Expand all
169 std::set<ShellImpl*> content_shell_impls_; 160 std::set<ShellImpl*> content_shell_impls_;
170 161
171 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; 162 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_;
172 163
173 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 164 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
174 }; 165 };
175 166
176 } // namespace mojo 167 } // namespace mojo
177 168
178 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 169 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698