OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/api/mdns/mdns_api.h" | 5 #include "chrome/browser/extensions/api/mdns/mdns_api.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
11 #include "chrome/browser/extensions/extension_system.h" | |
12 #include "chrome/common/extensions/api/mdns.h" | 11 #include "chrome/common/extensions/api/mdns.h" |
| 12 #include "extensions/browser/extension_system.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 namespace mdns = api::mdns; | 16 namespace mdns = api::mdns; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 // Whitelisted mDNS service types. | 20 // Whitelisted mDNS service types. |
21 const char kCastServiceType[] = "_googlecast._tcp.local"; | 21 const char kCastServiceType[] = "_googlecast._tcp.local"; |
22 const char kPrivetServiceType[] = "_privet._tcp.local"; | 22 const char kPrivetServiceType[] = "_privet._tcp.local"; |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 VLOG(1) << "Broadcasting OnServiceList event: " << event.get(); | 146 VLOG(1) << "Broadcasting OnServiceList event: " << event.get(); |
147 | 147 |
148 // TODO(justinlin): To avoid having listeners without filters getting all | 148 // TODO(justinlin): To avoid having listeners without filters getting all |
149 // events, modify API to have this event require filters. | 149 // events, modify API to have this event require filters. |
150 extensions::ExtensionSystem::Get(profile_)->event_router()-> | 150 extensions::ExtensionSystem::Get(profile_)->event_router()-> |
151 BroadcastEvent(event.Pass()); | 151 BroadcastEvent(event.Pass()); |
152 } | 152 } |
153 | 153 |
154 } // namespace extensions | 154 } // namespace extensions |
OLD | NEW |