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

Unified Diff: third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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: third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h
diff --git a/third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h b/third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h
index 13791f45e58235294d40992c742f355f4b748481..bc3c909438f1b82ba8ee8d774fc2f9cea5b38820 100644
--- a/third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h
+++ b/third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h
@@ -7,40 +7,38 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
+#include "mojo/edk/embedder/process_delegate.h"
#include "mojo/edk/system/system_impl_export.h"
namespace mojo {
namespace embedder {
-// An interface for containers of slave process information, to be used by
-// |MasterProcessDelegate| (below).
-class MOJO_SYSTEM_IMPL_EXPORT SlaveInfo {
- public:
- SlaveInfo() {}
- virtual ~SlaveInfo() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(SlaveInfo);
-};
+typedef void* SlaveInfo;
// An interface for the master process delegate (which lives in the master
// process).
-class MOJO_SYSTEM_IMPL_EXPORT MasterProcessDelegate {
+class MOJO_SYSTEM_IMPL_EXPORT MasterProcessDelegate : public ProcessDelegate {
public:
+ ProcessType GetType() const override;
+
// Called when contact with the slave process specified by |slave_info| has
// been lost.
// TODO(vtl): Obviously, there needs to be a suitable embedder API for
// connecting to a process. What will it be? Mention that here once it exists.
- virtual void OnSlaveDisconnect(scoped_ptr<SlaveInfo> slave_info) = 0;
+ virtual void OnSlaveDisconnect(SlaveInfo slave_info) = 0;
protected:
MasterProcessDelegate() {}
- virtual ~MasterProcessDelegate() {}
+ ~MasterProcessDelegate() override {}
private:
DISALLOW_COPY_AND_ASSIGN(MasterProcessDelegate);
};
+inline ProcessType MasterProcessDelegate::GetType() const {
+ return ProcessType::MASTER;
+}
+
} // namespace embedder
} // namespace mojo
« no previous file with comments | « third_party/mojo/src/mojo/edk/embedder/embedder_unittest.cc ('k') | third_party/mojo/src/mojo/edk/embedder/platform_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698