Index: chrome/browser/prerender/prerender_tracker.h |
diff --git a/chrome/browser/prerender/prerender_tracker.h b/chrome/browser/prerender/prerender_tracker.h |
index 56d5dffc8fc176825c4448f902572f0d32c91023..a3d1af54b609184a075e071a671dc650d274d1da 100644 |
--- a/chrome/browser/prerender/prerender_tracker.h |
+++ b/chrome/browser/prerender/prerender_tracker.h |
@@ -10,7 +10,6 @@ |
#include <set> |
#include <vector> |
-#include "base/callback_forward.h" |
#include "base/gtest_prod_util.h" |
#include "base/synchronization/lock.h" |
#include "base/threading/non_thread_safe.h" |
@@ -22,33 +21,11 @@ namespace prerender { |
class PrerenderManager; |
struct RenderViewInfo; |
-// An URLCounter keeps track of the number of occurrences of a prerendered URL. |
-class URLCounter : public base::NonThreadSafe { |
- public: |
- URLCounter(); |
- ~URLCounter(); |
- |
- // Determines whether the URL is contained in the set. |
- bool MatchesURL(const GURL& url) const; |
- |
- // Adds a URL to the set. |
- void AddURL(const GURL& url); |
- |
- // Removes a number of URLs from the set. |
- void RemoveURLs(const std::vector<GURL>& urls); |
- |
- private: |
- typedef std::map<GURL, int> URLCountMap; |
- URLCountMap url_count_map_; |
-}; |
- |
// PrerenderTracker is responsible for keeping track of all prerendering |
// RenderViews and their statuses. Its list is guaranteed to be up to date |
// and can be modified on any thread. |
class PrerenderTracker { |
public: |
- typedef base::Callback<void(bool /* proceed */)> CheckURLCallback; |
- |
PrerenderTracker(); |
~PrerenderTracker(); |
@@ -79,15 +56,6 @@ class PrerenderTracker { |
bool TryCancelOnIOThread(int child_id, int route_id, |
FinalStatus final_status); |
- // Potentially delay a resource request on the IO thread to prevent a double |
- // get. When this method returns true, the callback will be run later to |
- // indicate if the request should be allowed or canceled. |
- bool PotentiallyDelayRequestOnIOThread( |
- const GURL& gurl, |
- int child_id, |
- int route_id, |
- const CheckURLCallback& callback); |
- |
void AddPrerenderURLOnUIThread(const GURL& url); |
void RemovePrerenderURLsOnUIThread(const std::vector<GURL>& urls); |
@@ -168,10 +136,6 @@ class PrerenderTracker { |
// used to prevent locking when not needed. |
PossiblyPrerenderingChildRouteIdPairs possibly_prerendering_io_thread_set_; |
- // |url_counter_| keeps track of the top-level URLs which are being |
- // prerendered. It must only be accessed on the IO thread. |
- URLCounter url_counter_; |
- |
DISALLOW_COPY_AND_ASSIGN(PrerenderTracker); |
}; |