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

Side by Side Diff: chrome/browser/media/router/discovery/dial/dial_service.h

Issue 2756483007: [Device Discovery] Move files from browser/extensions/api/dial to browser/media/router/discovery/di… (Closed)
Patch Set: add deps to extension/api/DEPS Created 3 years, 9 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
OLDNEW
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_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ 6 #define CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_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 IPEndPoint; 22 class IPEndPoint;
23 class StringIOBuffer; 23 class StringIOBuffer;
24 class NetLog; 24 class NetLog;
25 } 25 }
26 26
27 namespace extensions { 27 namespace media_router {
28 namespace api {
29 namespace dial {
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 //
37 // Each time Discover() is called, kDialNumRequests M-SEARCH requests are sent 35 // Each time Discover() is called, kDialNumRequests M-SEARCH requests are sent
38 // (with a delay of kDialRequestIntervalMillis in between): 36 // (with a delay of kDialRequestIntervalMillis in between):
39 // 37 //
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestSendMultipleRequests); 283 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestSendMultipleRequests);
286 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestMultipleNetworkInterfaces); 284 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestMultipleNetworkInterfaces);
287 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestNotifyOnError); 285 FRIEND_TEST_ALL_PREFIXES(DialServiceTest, TestNotifyOnError);
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 dial 293 } // namespace media_router
296 } // namespace api
297 } // namespace extensions
298 294
299 #endif // CHROME_BROWSER_EXTENSIONS_API_DIAL_DIAL_SERVICE_H_ 295 #endif // CHROME_BROWSER_MEDIA_ROUTER_DISCOVERY_DIAL_DIAL_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698