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

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

Issue 883843002: Update mojo sdk to rev 126532ce21c5c3c55a1e1693731411cb60169efd (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 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: third_party/mojo/src/mojo/edk/embedder/slave_process_delegate.h
diff --git a/third_party/mojo/src/mojo/edk/embedder/slave_process_delegate.h b/third_party/mojo/src/mojo/edk/embedder/slave_process_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..1c55a7a302a36abc3f376515ebdee156a572f1ab
--- /dev/null
+++ b/third_party/mojo/src/mojo/edk/embedder/slave_process_delegate.h
@@ -0,0 +1,36 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_EDK_EMBEDDER_SLAVE_PROCESS_DELEGATE_H_
+#define MOJO_EDK_EMBEDDER_SLAVE_PROCESS_DELEGATE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "mojo/edk/system/system_impl_export.h"
+
+namespace mojo {
+namespace embedder {
+
+// An interface for the slave process delegate (which lives in each slave
+// process).
+class MOJO_SYSTEM_IMPL_EXPORT SlaveProcessDelegate {
+ public:
+ // Called when contact with the master process has been lost.
+ // TODO(vtl): Obviously, there needs to be a suitable embedder API for
+ // connecting to the master process. What will it be? Mention that here once
+ // it exists.
+ virtual void OnMasterDisconnect() = 0;
+
+ protected:
+ SlaveProcessDelegate() {}
+ virtual ~SlaveProcessDelegate() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(SlaveProcessDelegate);
+};
+
+} // namespace embedder
+} // namespace mojo
+
+#endif // MOJO_EDK_EMBEDDER_SLAVE_PROCESS_DELEGATE_H_
« no previous file with comments | « third_party/mojo/src/mojo/edk/embedder/master_process_delegate.h ('k') | third_party/mojo/src/mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698