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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 INCLUDE_DEFAULT_LOADER, | 101 INCLUDE_DEFAULT_LOADER, |
102 DONT_INCLUDE_DEFAULT_LOADER, | 102 DONT_INCLUDE_DEFAULT_LOADER, |
103 }; | 103 }; |
104 | 104 |
105 class ContentHandlerConnection; | 105 class ContentHandlerConnection; |
106 | 106 |
107 typedef std::map<std::string, ApplicationLoader*> SchemeToLoaderMap; | 107 typedef std::map<std::string, ApplicationLoader*> SchemeToLoaderMap; |
108 typedef std::map<GURL, ApplicationLoader*> URLToLoaderMap; | 108 typedef std::map<GURL, ApplicationLoader*> URLToLoaderMap; |
109 typedef std::map<GURL, ShellImpl*> URLToShellImplMap; | 109 typedef std::map<GURL, ShellImpl*> URLToShellImplMap; |
110 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap; | 110 typedef std::map<GURL, ContentHandlerConnection*> URLToContentHandlerMap; |
111 typedef std::map<GURL, std::vector<std::string> > URLToArgsMap; | 111 typedef std::map<GURL, std::vector<std::string>> URLToArgsMap; |
112 | 112 |
113 void ConnectToApplicationImpl(const GURL& requested_url, | 113 void ConnectToApplicationImpl(const GURL& requested_url, |
114 const GURL& resolved_url, | 114 const GURL& resolved_url, |
115 const GURL& requestor_url, | 115 const GURL& requestor_url, |
116 InterfaceRequest<ServiceProvider> services, | 116 InterfaceRequest<ServiceProvider> services, |
117 ServiceProviderPtr exposed_services, | 117 ServiceProviderPtr exposed_services, |
118 ApplicationLoader* loader); | 118 ApplicationLoader* loader); |
119 | 119 |
120 ShellImpl* GetShellImpl(const GURL& url); | 120 ShellImpl* GetShellImpl(const GURL& url); |
121 | 121 |
(...skipping 29 matching lines...) Expand all Loading... |
151 URLToArgsMap url_to_args_; | 151 URLToArgsMap url_to_args_; |
152 | 152 |
153 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; | 153 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); | 155 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace mojo | 158 } // namespace mojo |
159 | 159 |
160 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ | 160 #endif // SHELL_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ |
OLD | NEW |