Index: ipc/ipc_channel.h |
diff --git a/ipc/ipc_channel.h b/ipc/ipc_channel.h |
index bfa5ec6ed85cd9ae21d54d3422a6d141930bf0b0..4426e5d5c7b38aa75365b4740694d3ed10f9ce13 100644 |
--- a/ipc/ipc_channel.h |
+++ b/ipc/ipc_channel.h |
@@ -204,6 +204,14 @@ class IPC_EXPORT Channel : public Sender { |
static void SetGlobalPid(int pid); |
#endif |
+#if defined(OS_ANDROID) |
+ // Most tests are single process and work the same on all platforms. However |
+ // in some cases we want to test multi-process, and Android differs in that it |
+ // can't 'exec' after forking. This callback resets any data in the forked |
+ // process such that it acts similar to if it was exec'd, for tests. |
+ static void NotifyProcessForkedForTesting(); |
+#endif |
+ |
protected: |
// Used in Chrome by the TestSink to provide a dummy channel implementation |
// for testing. TestSink overrides the "interesting" functions in Channel so |