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

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

Issue 513573002: Mojo: Fix two bugs in content handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ServiceProviderPtr service_provider); 116 ServiceProviderPtr service_provider);
117 117
118 void RegisterLoadedApplication(const GURL& service_url, 118 void RegisterLoadedApplication(const GURL& service_url,
119 const GURL& requestor_url, 119 const GURL& requestor_url,
120 ServiceProviderPtr service_provider, 120 ServiceProviderPtr service_provider,
121 ScopedMessagePipeHandle* shell_handle); 121 ScopedMessagePipeHandle* shell_handle);
122 122
123 void LoadWithContentHandler(const GURL& content_url, 123 void LoadWithContentHandler(const GURL& content_url,
124 const GURL& requestor_url, 124 const GURL& requestor_url,
125 const GURL& content_handler_url, 125 const GURL& content_handler_url,
126 URLResponsePtr content, 126 URLResponsePtr url_response,
127 ServiceProviderPtr service_provider); 127 ServiceProviderPtr service_provider);
128 128
129 // Returns the Loader to use for a url (using default if not overridden.) 129 // Returns the Loader to use for a url (using default if not overridden.)
130 // The preference is to use a loader that's been specified for an url first, 130 // The preference is to use a loader that's been specified for an url first,
131 // then one that's been specified for a scheme, then the default. 131 // then one that's been specified for a scheme, then the default.
132 ApplicationLoader* GetLoaderForURL(const GURL& url); 132 ApplicationLoader* GetLoaderForURL(const GURL& url);
133 133
134 // Removes a ShellImpl when it encounters an error. 134 // Removes a ShellImpl when it encounters an error.
135 void OnShellImplError(ShellImpl* shell_impl); 135 void OnShellImplError(ShellImpl* shell_impl);
136 136
137 Delegate* delegate_; 137 Delegate* delegate_;
138 // Loader management. 138 // Loader management.
139 URLToLoaderMap url_to_loader_; 139 URLToLoaderMap url_to_loader_;
140 SchemeToLoaderMap scheme_to_loader_; 140 SchemeToLoaderMap scheme_to_loader_;
141 scoped_ptr<ApplicationLoader> default_loader_; 141 scoped_ptr<ApplicationLoader> default_loader_;
142 Interceptor* interceptor_; 142 Interceptor* interceptor_;
143 143
144 URLToShellImplMap url_to_shell_impl_; 144 URLToShellImplMap url_to_shell_impl_;
145 URLToContentHandlerMap url_to_content_handler_; 145 URLToContentHandlerMap url_to_content_handler_;
146 146
147 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_; 147 base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(ApplicationManager); 149 DISALLOW_COPY_AND_ASSIGN(ApplicationManager);
150 }; 150 };
151 151
152 } // namespace mojo 152 } // namespace mojo
153 153
154 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_ 154 #endif // MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/application_manager/application_loader.cc ('k') | mojo/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698