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

Side by Side Diff: chrome/browser/local_discovery/privet_device_resolver.h

Issue 131503013: Added PrivetDeviceResolver to resolve a device and parse it as a privet device (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_device_resolver.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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_LOCAL_DISCOVERY_PRIVET_DEVICE_RESOLVER_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_RESOLVER_H_
7
8 #include <string>
9
10 #include "base/callback.h"
11 #include "chrome/browser/local_discovery/device_description.h"
12 #include "chrome/common/local_discovery/service_discovery_client.h"
13
14 namespace local_discovery {
15
16 class PrivetDeviceResolver {
17 public:
18 typedef base::Callback<void(bool /*success*/,
19 const DeviceDescription& /*description*/)>
20 ResultCallback;
Vitaly Buka (NO REVIEWS) 2014/01/29 23:13:16 missaligned
Noam Samuel 2014/01/29 23:22:59 Done.
21
22 PrivetDeviceResolver(
23 ServiceDiscoveryClient* service_discovery_client,
Vitaly Buka (NO REVIEWS) 2014/01/29 23:13:16 missaligned
Noam Samuel 2014/01/29 23:22:59 Done.
24 const std::string& service_name,
25 const ResultCallback& callback);
26 ~PrivetDeviceResolver();
27
28 void Start();
29
30 private:
31 void OnServiceResolved(
32 ServiceResolver::RequestStatus request_status,
Vitaly Buka (NO REVIEWS) 2014/01/29 23:13:16 same
Noam Samuel 2014/01/29 23:22:59 Done.
33 const ServiceDescription& service_description);
34
35
36 ServiceDiscoveryClient* service_discovery_client_;
37 scoped_ptr<ServiceResolver> service_resolver_;
38 std::string service_name_;
39 ResultCallback callback_;
40 };
41
42 } // namespace local_discovery
43
44 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_PRIVET_DEVICE_RESOLVER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/local_discovery/privet_device_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698