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

Unified Diff: components/view_manager/public/cpp/view_manager_init.h

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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: components/view_manager/public/cpp/view_manager_init.h
diff --git a/components/view_manager/public/cpp/view_manager_init.h b/components/view_manager/public/cpp/view_manager_init.h
index 2fcd74f027a5e3f424edc13ae1467e71add22048..40b7339e825c303b1d168c2ec4559a2821c69097 100644
--- a/components/view_manager/public/cpp/view_manager_init.h
+++ b/components/view_manager/public/cpp/view_manager_init.h
@@ -10,6 +10,8 @@
#include "components/view_manager/public/interfaces/view_manager.mojom.h"
#include "components/view_manager/public/interfaces/view_manager_root.mojom.h"
#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h"
+
namespace mojo {
class ApplicationImpl;
@@ -18,13 +20,13 @@ class ViewManagerDelegate;
// ViewManagerInit is used to establish the initial connection to the
// ViewManager. Use it when you know the ViewManager is not running and you're
// app is going to be the first one to contact it.
-class ViewManagerInit {
+class ViewManagerInit : public mojo::ErrorHandler {
public:
// |root_client| is optional.
ViewManagerInit(ApplicationImpl* app,
ViewManagerDelegate* delegate,
ViewManagerRootClient* root_client);
- ~ViewManagerInit();
+ ~ViewManagerInit() override;
// Returns the ViewManagerRoot. This is only valid if |root_client| was
// supplied to the constructor.
@@ -35,6 +37,9 @@ class ViewManagerInit {
void OnCreate(InterfaceRequest<ViewManagerClient> request);
+ // ErrorHandler:
+ void OnConnectionError() override;
+
ApplicationImpl* app_;
ViewManagerDelegate* delegate_;
scoped_ptr<ClientFactory> client_factory_;

Powered by Google App Engine
This is Rietveld 408576698