OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ | 5 #ifndef REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ |
6 #define REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ | 6 #define REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 virtual ~WorkerProcessIpcDelegate() {} | 22 virtual ~WorkerProcessIpcDelegate() {} |
23 | 23 |
24 // Notifies that a client has been connected to the channel. | 24 // Notifies that a client has been connected to the channel. |
25 virtual void OnChannelConnected(int32_t peer_pid) = 0; | 25 virtual void OnChannelConnected(int32_t peer_pid) = 0; |
26 | 26 |
27 // Processes messages sent by the client. | 27 // Processes messages sent by the client. |
28 virtual bool OnMessageReceived(const IPC::Message& message) = 0; | 28 virtual bool OnMessageReceived(const IPC::Message& message) = 0; |
29 | 29 |
30 // Notifies that a permanent error was encountered. | 30 // Notifies that a permanent error was encountered. |
31 virtual void OnPermanentError(int exit_code) = 0; | 31 virtual void OnPermanentError(int exit_code) = 0; |
| 32 |
| 33 // Notifies that the worker process stops for any reason. |
| 34 virtual void OnWorkerProcessStopped() = 0; |
32 }; | 35 }; |
33 | 36 |
34 } // namespace remoting | 37 } // namespace remoting |
35 | 38 |
36 #endif // REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ | 39 #endif // REMOTING_HOST_WORKER_PROCESS_IPC_DELEGATE_H_ |
OLD | NEW |