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

Unified Diff: trunk/src/net/base/prioritized_dispatcher.h

Issue 23102009: Revert 218616 "[net/dns] Perform A/AAAA queries for AF_UNSPEC re..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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
« no previous file with comments | « trunk/src/chrome/browser/net/dns_probe_test_util.cc ('k') | trunk/src/net/base/prioritized_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/base/prioritized_dispatcher.h
===================================================================
--- trunk/src/net/base/prioritized_dispatcher.h (revision 219026)
+++ trunk/src/net/base/prioritized_dispatcher.h (working copy)
@@ -78,10 +78,6 @@
// it is queued in the dispatcher.
Handle Add(Job* job, Priority priority);
- // Just like Add, except that it adds Job at the font of queue of jobs with
- // priorities of |priority|.
- Handle AddAtHead(Job* job, Priority priority);
-
// Removes the job with |handle| from the queue. Invalidates |handle|.
// Note: a Handle is valid iff the job is in the queue, i.e. has not Started.
void Cancel(const Handle& handle);
@@ -98,21 +94,12 @@
// Notifies the dispatcher that a running job has finished. Could start a job.
void OnJobFinished();
- // Tells the dispatcher not to start new jobs when old jobs complete or are
- // cancelled. Can't be undone. Can be used to avoid starting new jobs during
- // cleanup.
- void Disable();
-
private:
// Attempts to dispatch the job with |handle| at priority |priority| (might be
// different than |handle.priority()|. Returns true if successful. If so
// the |handle| becomes invalid.
bool MaybeDispatchJob(const Handle& handle, Priority priority);
- // Updates |max_running_jobs_| to match |limits|. Does not start any new
- // new jobs, even if the new limits would allow queued jobs to start.
- void SetLimits(const Limits& limits);
-
// Queue for jobs that need to wait for a spare slot.
PriorityQueue<Job*> queue_;
// Maximum total number of running jobs allowed after a job at a particular
« no previous file with comments | « trunk/src/chrome/browser/net/dns_probe_test_util.cc ('k') | trunk/src/net/base/prioritized_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698