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

Unified Diff: net/dns/dns_transaction.h

Issue 9113022: Adds PriorityQueue and PrioritizedDispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Applied review. Created 8 years, 11 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: net/dns/dns_transaction.h
diff --git a/net/dns/dns_transaction.h b/net/dns/dns_transaction.h
index e6a1d029d934211afcb455c80f021b4d393679e2..afaabec0b45a7afec5bcaeb349197bcd65c008e3 100644
--- a/net/dns/dns_transaction.h
+++ b/net/dns/dns_transaction.h
@@ -49,8 +49,9 @@ class NET_EXPORT_PRIVATE DnsTransaction :
const DnsResponse* response() const { return response_.get(); }
- // Starts the resolution process. Will return ERR_IO_PENDING and will
- // notify the caller via |delegate|. Should only be called once.
+ // Starts the resolution process. Will return ERR_IO_PENDING and will notify
+ // the caller via |delegate|, except when failing synchronously. Should only
+ // be called once.
int Start();
private:
@@ -64,6 +65,12 @@ class NET_EXPORT_PRIVATE DnsTransaction :
STATE_NONE,
};
+ struct Attempt {
+ scoped_ptr<DnsQuery> query_;
+ scoped_ptr<DnsResponse> response_;
+ scoped_ptr<DatagramClientSocket> socket_;
+ };
+
int DoLoop(int result);
void DoCallback(int result);
void OnIOComplete(int result);
« net/base/priority_queue.h ('K') | « net/dns/dns_query.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698