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

Unified Diff: shell/application_manager/application_manager.h

Issue 1444433002: Added anti-singleton services (new process/thread per connection). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Made MakeApplicationIdentity, updated README Created 5 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 side-by-side diff with in-line comments
Download patch
Index: shell/application_manager/application_manager.h
diff --git a/shell/application_manager/application_manager.h b/shell/application_manager/application_manager.h
index 0a5e8b08d146b88f4793e79fdfcb9b2189971ff2..fbabf59952dd8b259b466f34740213a081e89a57 100644
--- a/shell/application_manager/application_manager.h
+++ b/shell/application_manager/application_manager.h
@@ -146,8 +146,8 @@ class ApplicationManager {
using SchemeToLoaderMap =
std::map<std::string, scoped_ptr<ApplicationLoader>>;
using IdentityToShellImplMap = std::map<Identity, scoped_ptr<ShellImpl>>;
- using URLToContentHandlerMap =
- std::map<GURL, scoped_ptr<ContentHandlerConnection>>;
+ using IdentityToContentHandlerMap =
+ std::map<Identity, scoped_ptr<ContentHandlerConnection>>;
using URLToArgsMap = std::map<GURL, std::vector<std::string>>;
using MimeTypeToURLMap = std::map<std::string, GURL>;
using URLToNativeOptionsMap = std::map<GURL, NativeApplicationOptions>;
@@ -175,6 +175,8 @@ class ApplicationManager {
const std::vector<std::string>& parameters,
ApplicationLoader* loader);
+ Identity MakeApplicationIdentity(const GURL& resolved_url);
+
mojo::InterfaceRequest<mojo::Application> RegisterShell(
// The URL after resolution and redirects, including the querystring.
const GURL& resolved_url,
@@ -234,7 +236,7 @@ class ApplicationManager {
scoped_ptr<NativeRunnerFactory> native_runner_factory_;
IdentityToShellImplMap identity_to_shell_impl_;
- URLToContentHandlerMap url_to_content_handler_;
+ IdentityToContentHandlerMap identity_to_content_handler_;
URLToArgsMap url_to_args_;
// Note: The keys are URLs after mapping and resolving.
URLToNativeOptionsMap url_to_native_options_;

Powered by Google App Engine
This is Rietveld 408576698