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 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 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap; | 109 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap; |
110 typedef std::map<GURL, std::vector<std::string> > URLToArgsMap; | 110 typedef std::map<GURL, std::vector<std::string> > URLToArgsMap; |
111 | 111 |
112 void ConnectToApplicationImpl(const GURL& requested_url, | 112 void ConnectToApplicationImpl(const GURL& requested_url, |
113 const GURL& resolved_url, | 113 const GURL& resolved_url, |
114 const GURL& requestor_url, | 114 const GURL& requestor_url, |
115 InterfaceRequest<ServiceProvider> services, | 115 InterfaceRequest<ServiceProvider> services, |
116 ServiceProviderPtr exposed_services, | 116 ServiceProviderPtr exposed_services, |
117 ApplicationLoader* loader); | 117 ApplicationLoader* loader); |
118 | 118 |
| 119 ShellImpl* GetShellImpl(const GURL& url); |
| 120 |
119 void ConnectToClient(ShellImpl* shell_impl, | 121 void ConnectToClient(ShellImpl* shell_impl, |
120 const GURL& url, | 122 const GURL& url, |
121 const GURL& requestor_url, | 123 const GURL& requestor_url, |
122 InterfaceRequest<ServiceProvider> services, | 124 InterfaceRequest<ServiceProvider> services, |
123 ServiceProviderPtr exposed_services); | 125 ServiceProviderPtr exposed_services); |
124 | 126 |
125 void LoadWithContentHandler(const GURL& content_handler_url, | 127 void LoadWithContentHandler(const GURL& content_handler_url, |
126 ScopedMessagePipeHandle shell_handle, | 128 ScopedMessagePipeHandle shell_handle, |
127 URLResponsePtr url_response); | 129 URLResponsePtr url_response); |
128 | 130 |
(...skipping 19 matching lines...) Expand all Loading... |
148 URLToArgsMap url_to_args_; | 150 URLToArgsMap url_to_args_; |
149 | 151 |
150 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; | 152 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; |
151 | 153 |
152 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 154 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
153 }; | 155 }; |
154 | 156 |
155 } // namespace mojo | 157 } // namespace mojo |
156 | 158 |
157 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ | 159 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ |
OLD | NEW |