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

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: Add missing comment 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
« no previous file with comments | « mojo/application/content_handler_factory.cc ('k') | mojo/application_manager/application_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..45abfd171d580a480a0796f72e42311ee4e3e78b 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"
@@ -108,7 +109,7 @@ class MOJO_APPLICATION_MANAGER_EXPORT ApplicationManager {
void TerminateShellConnections();
private:
- struct ContentHandlerConnection;
+ class ContentHandlerConnection;
class LoadCallbacksImpl;
class ShellImpl;
@@ -141,6 +142,12 @@ class MOJO_APPLICATION_MANAGER_EXPORT ApplicationManager {
// Removes a ShellImpl when it encounters an error.
void OnShellImplError(ShellImpl* shell_impl);
+ //
+ // Removes a ContentHandler when it encounters an error.
+ void OnContentHandlerError(ContentHandlerConnection* content_handler);
+
+ // Returns the arguments for the given url.
+ Array<String> GetArgsForURL(const GURL& url);
Delegate* delegate_;
// Loader management.
@@ -152,6 +159,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_;
« no previous file with comments | « mojo/application/content_handler_factory.cc ('k') | mojo/application_manager/application_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698