OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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 // Broker RPC Server. |
| 6 |
| 7 #ifndef CEEE_IE_BROKER_BROKER_RPC_SERVER_H_ |
| 8 #define CEEE_IE_BROKER_BROKER_RPC_SERVER_H_ |
| 9 |
| 10 #include <wtypes.h> |
| 11 #include "base/basictypes.h" |
| 12 |
| 13 // Serving requests from BrokerRpcClient. |
| 14 class BrokerRpcServer { |
| 15 public: |
| 16 BrokerRpcServer(); |
| 17 ~BrokerRpcServer(); |
| 18 |
| 19 // Registers RPC interface and starts listening for requests. |
| 20 bool Start(); |
| 21 |
| 22 // Unregister RPC interface. |
| 23 bool Stop(); |
| 24 |
| 25 // Returns true if object is listening. |
| 26 bool is_started() const; |
| 27 |
| 28 private: |
| 29 // State of object. |
| 30 bool is_started_; |
| 31 DWORD current_thread_; |
| 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(BrokerRpcServer); |
| 34 }; |
| 35 |
| 36 #endif // CEEE_IE_BROKER_BROKER_RPC_SERVER_H_ |
OLD | NEW |