Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/extensions/api/dial/nsd_registry.h

Issue 22870011: chrome.mdns API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698