OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/timer/timer.h" | 16 #include "base/timer/timer.h" |
17 #include "net/base/ip_address.h" | 17 #include "net/base/ip_address.h" |
18 #include "net/log/net_log_source.h" | 18 #include "net/log/net_log_source.h" |
19 #include "net/socket/udp_socket.h" | 19 #include "net/socket/udp_socket.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class IOBuffer; | |
23 class IPEndPoint; | 22 class IPEndPoint; |
24 class StringIOBuffer; | 23 class StringIOBuffer; |
25 class NetLog; | 24 class NetLog; |
26 struct NetworkInterface; | |
27 } | 25 } |
28 | 26 |
29 namespace extensions { | 27 namespace extensions { |
30 | 28 |
31 class DialDeviceData; | 29 class DialDeviceData; |
32 | 30 |
33 // DialService accepts requests to discover devices, sends multiple M-SEARCH | 31 // DialService accepts requests to discover devices, sends multiple M-SEARCH |
34 // requests via UDP multicast, and notifies observers when a DIAL-compliant | 32 // requests via UDP multicast, and notifies observers when a DIAL-compliant |
35 // device responds. | 33 // device responds. |
36 // | 34 // |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDeviceDiscovered); | 286 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDeviceDiscovered); |
289 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryFinished); | 287 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryFinished); |
290 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryRequest); | 288 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestOnDiscoveryRequest); |
291 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestResponseParsing); | 289 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestResponseParsing); |
292 DISALLOW_COPY_AND_ASSIGN(DialServiceImpl); | 290 DISALLOW_COPY_AND_ASSIGN(DialServiceImpl); |
293 }; | 291 }; |
294 | 292 |
295 } // namespace extensions | 293 } // namespace extensions |
296 | 294 |
297 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ | 295 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ |
OLD | NEW |