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

Unified Diff: chrome/browser/extensions/api/mdns/dns_sd_registry.cc

Issue 23437015: Initial chrome.mdns API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test for WinDbg Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/mdns/dns_sd_registry.h ('k') | chrome/browser/extensions/api/mdns/mdns_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/mdns/dns_sd_registry.cc
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
new file mode 100644
index 0000000000000000000000000000000000000000..8194dadac680dfa4ce48ad52ec79dba29a740457
--- /dev/null
+++ b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/api/mdns/dns_sd_registry.h"
+
+namespace extensions {
+
+DnsSdRegistry::DnsSdRegistry() {}
+DnsSdRegistry::~DnsSdRegistry() {}
+
+void DnsSdRegistry::AddObserver(DnsSdObserver* observer) {
+ observers_.AddObserver(observer);
+}
+
+void DnsSdRegistry::RemoveObserver(DnsSdObserver* observer) {
+ observers_.RemoveObserver(observer);
+}
+
+void DnsSdRegistry::RegisterDnsSdListener(std::string service_type) {
+ // TODO(mfoltz): Start DNS-SD service.
+}
+
+void DnsSdRegistry::UnregisterDnsSdListener(std::string service_type) {
+ // TODO(mfoltz): Stop DNS-SD service.
+}
+
+} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/api/mdns/dns_sd_registry.h ('k') | chrome/browser/extensions/api/mdns/mdns_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698