Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef REMOTING_HOST_WORKER_PROCESS_DELEGATE_H_ | |
| 6 #define REMOTING_HOST_WORKER_PROCESS_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/compiler_specific.h" | |
| 10 | |
| 11 namespace IPC { | |
| 12 class Message; | |
| 13 } // namespace IPC | |
| 14 | |
| 15 namespace remoting { | |
| 16 | |
| 17 // An interface representing a worker process that is connected via an IPC | |
| 18 // channel. | |
|
Wez
2012/08/30 20:36:04
From the caller's perspective the worker process i
alexeypa (please no reviews)
2012/08/30 23:15:13
Done.
| |
| 19 class WorkerProcessDelegate { | |
|
Wez
2012/08/30 20:36:04
WorkerProcessDelegate -> WorkerIpcDelegate, or jus
alexeypa (please no reviews)
2012/08/30 23:15:13
WorkerProcessIpcDelegate.
| |
| 20 public: | |
| 21 virtual ~WorkerProcessDelegate() {} | |
| 22 | |
| 23 // Notifies that a client has been connected to the channel. | |
| 24 virtual void OnChannelConnected() = 0; | |
| 25 | |
| 26 // Processes messages sent by the client. | |
| 27 virtual bool OnMessageReceived(const IPC::Message& message) = 0; | |
| 28 }; | |
| 29 | |
| 30 } // namespace remoting | |
| 31 | |
| 32 #endif // REMOTING_HOST_WORKER_PROCESS_DELEGATE_H_ | |
| OLD | NEW |