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

Unified Diff: chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h

Issue 948283005: Added PrivetHTTPResolution::Start for service name only (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no_start
Patch Set: Wed Feb 25 15:43:16 PST 2015 Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h
diff --git a/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h b/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h
index 520a66ba09e19a7a2847dfae180e45e3cf78eb84..bc5448f5e354166657f7dd93c7a10d8386f15944 100644
--- a/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h
+++ b/chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h
@@ -29,12 +29,18 @@ class PrivetHTTPAsynchronousFactoryImpl : public PrivetHTTPAsynchronousFactory {
net::URLRequestContextGetter* request_context);
~ResolutionImpl() override;
+ void Start(const ResultCallback& callback) override;
+
void Start(const net::HostPortPair& address,
const ResultCallback& callback) override;
const std::string& GetName() override;
private:
+ void ServiceResolveComplete(const ResultCallback& callback,
+ ServiceResolver::RequestStatus result,
+ const ServiceDescription& description);
+
void DomainResolveComplete(uint16 port,
const ResultCallback& callback,
bool success,
@@ -44,6 +50,7 @@ class PrivetHTTPAsynchronousFactoryImpl : public PrivetHTTPAsynchronousFactory {
std::string name_;
scoped_refptr<net::URLRequestContextGetter> request_context_;
scoped_refptr<ServiceDiscoverySharedClient> service_discovery_client_;
+ scoped_ptr<ServiceResolver> service_resolver_;
scoped_ptr<LocalDomainResolver> domain_resolver_;
};

Powered by Google App Engine
This is Rietveld 408576698