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

Unified Diff: mojo/application_manager/application_manager.h

Issue 687273002: mojo: Update content handler API (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rename content_handler.h Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: mojo/application_manager/application_manager.h
diff --git a/mojo/application_manager/application_manager.h b/mojo/application_manager/application_manager.h
index af74d8b7c068e400734ebf2546fb066298a16fdd..7bb252357df899aa7cb900ed83e2b7bef53d70c0 100644
--- a/mojo/application_manager/application_manager.h
+++ b/mojo/application_manager/application_manager.h
@@ -6,6 +6,7 @@
#define MOJO_APPLICATION_MANAGER_APPLICATION_MANAGER_H_
#include <map>
+#include <set>
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
@@ -142,6 +143,9 @@ class MOJO_APPLICATION_MANAGER_EXPORT ApplicationManager {
// Removes a ShellImpl when it encounters an error.
void OnShellImplError(ShellImpl* shell_impl);
+ // Returns the arguments for the given url.
+ Array<String> GetArgsForURL(const GURL& url);
+
Delegate* delegate_;
// Loader management.
URLToLoaderMap url_to_loader_;
@@ -152,6 +156,7 @@ class MOJO_APPLICATION_MANAGER_EXPORT ApplicationManager {
URLToShellImplMap url_to_shell_impl_;
URLToContentHandlerMap url_to_content_handler_;
URLToArgsMap url_to_args_;
+ std::set<ShellImpl*> content_shell_impls_;
base::WeakPtrFactory<ApplicationManager> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698