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 #include "base/basictypes.h" |
| 7 |
| 8 // Serving requests from BrokerRpcClient. |
| 9 class BrokerRpcServer { |
| 10 public: |
| 11 BrokerRpcServer(); |
| 12 ~BrokerRpcServer(); |
| 13 |
| 14 // Registers RPC interface and starts listening for requests. |
| 15 bool Start(); |
| 16 |
| 17 // Unregister RPC interface. |
| 18 bool Stop(); |
| 19 |
| 20 // Returns true if object is listening. |
| 21 bool is_started() const { |
| 22 return is_started_; |
| 23 } |
| 24 |
| 25 private: |
| 26 // State of object. |
| 27 bool is_started_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(BrokerRpcServer); |
| 30 }; |
OLD | NEW |