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

Unified Diff: content/child/mojo/mojo_application.h

Issue 1585493002: [mojo] Ports EDK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: content/child/mojo/mojo_application.h
diff --git a/content/child/mojo/mojo_application.h b/content/child/mojo/mojo_application.h
index cdd3608e71a9c77ec59b135ddf59fbd5089445ff..20c98c99a4e27047a9fd23f646c9e4df437c0563 100644
--- a/content/child/mojo/mojo_application.h
+++ b/content/child/mojo/mojo_application.h
@@ -6,6 +6,7 @@
#define CONTENT_CHILD_MOJO_MOJO_APPLICATION_H_
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
#include "content/common/mojo/channel_init.h"
#include "content/common/mojo/service_registry_impl.h"
#include "ipc/ipc_platform_file.h"
@@ -37,11 +38,12 @@ class MojoApplication {
private:
void OnActivate(const IPC::PlatformFileForTransit& file);
- scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
+ void OnMessagePipeCreated(mojo::ScopedMessagePipeHandle pipe);
+ scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
ChannelInit channel_init_;
-
ServiceRegistryImpl service_registry_;
+ base::WeakPtrFactory<MojoApplication> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(MojoApplication);
};

Powered by Google App Engine
This is Rietveld 408576698