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

Unified Diff: services/dart/content_handler_app_service_connector.h

Issue 2010283006: Almost done: ApplicationDelegate -> ApplicationImplBase conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@work798-x-work797-x-work796_no_run_main_app
Patch Set: rebased Created 4 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
« no previous file with comments | « services/dart/content_handler_app.cc ('k') | services/dart/content_handler_app_service_connector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/dart/content_handler_app_service_connector.h
diff --git a/services/dart/content_handler_app_service_connector.h b/services/dart/content_handler_app_service_connector.h
index a45a0ecff54a56c4951d8f63f223ecd89b636879..447b5c38fb10347f7642807440604207cec44791 100644
--- a/services/dart/content_handler_app_service_connector.h
+++ b/services/dart/content_handler_app_service_connector.h
@@ -5,13 +5,13 @@
#ifndef SERVICES_DART_CONTENT_HANDLER_APP_SERVICE_CONNECTOR_H_
#define SERVICES_DART_CONTENT_HANDLER_APP_SERVICE_CONNECTOR_H_
-#include "base/bind.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
-#include "base/message_loop/message_loop.h"
#include "mojo/dart/embedder/dart_controller.h"
-#include "mojo/public/cpp/application/application_impl.h"
+
+namespace mojo {
+class Shell;
+} // namespace mojo
namespace dart {
@@ -22,8 +22,9 @@ class ContentHandlerAppServiceConnector
public:
// Call this only on the same thread as the content_handler_runner. This is
// checked in the body of the constructor.
- explicit ContentHandlerAppServiceConnector(
- mojo::ApplicationImpl* content_handler_app);
+ // TODO(vtl): Maybe this should take an
+ // |InterfaceHandle<ApplicationConnector>| instead of a |Shell*|.
+ explicit ContentHandlerAppServiceConnector(mojo::Shell* shell);
// Must be called on the same thread that constructed |this|.
~ContentHandlerAppServiceConnector() override;
@@ -38,7 +39,7 @@ class ContentHandlerAppServiceConnector
mojo::InterfaceRequest<Interface> interface_request);
scoped_refptr<base::SingleThreadTaskRunner> runner_;
- mojo::ApplicationImpl* content_handler_app_;
+ mojo::Shell* shell_;
base::WeakPtrFactory<ContentHandlerAppServiceConnector> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ContentHandlerAppServiceConnector);
« no previous file with comments | « services/dart/content_handler_app.cc ('k') | services/dart/content_handler_app_service_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698