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

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

Issue 861293002: Allow external applications to register for mojo: urls (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge / nits Created 5 years, 11 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
« no previous file with comments | « no previous file | shell/application_manager/application_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <set> 9 #include <set>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | shell/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698