OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 CHROME_BROWSER_EXTENSIONS_API_DIAL_NSD_REGISTRY_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_NSD_REGISTRY_H_ |
| 7 |
| 8 namespace extensions { |
| 9 |
| 10 // Network Service Discovery registry class for keeping track of local network |
| 11 // services discovered on the local network. |
| 12 class NsdRegistry : public { |
| 13 public: |
| 14 // TODO: |
| 15 typedef std::vector<string> NsdDeviceList; |
| 16 |
| 17 enum NsdErrorCode { |
| 18 NSD_SERVICE_ERROR |
| 19 NSD_ERROR |
| 20 } |
| 21 |
| 22 class Observer { |
| 23 public: |
| 24 virtual void OnNsdEvent(const NsdDeviceList& devices) = 0; |
| 25 virtual void OnNsdEvent(NsdErrorCode type) = 0; |
| 26 |
| 27 protected: |
| 28 virtual ~Observer() {} |
| 29 }; |
| 30 |
| 31 explicit NsdRegistry(Observer* dial_api); |
| 32 |
| 33 protected: |
| 34 |
| 35 private: |
| 36 }; |
| 37 |
| 38 } // namespace extensions |
| 39 |
| 40 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_NSD_REGISTRY_H_ |
OLD | NEW |