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

Unified Diff: chrome/browser/net/resource_prefetch_predictor_observer.h

Issue 117933003: Remove the speculative resource prefetching code. This was experimental code added 1.5 years ago an… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 6 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
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/net/resource_prefetch_predictor_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/resource_prefetch_predictor_observer.h
===================================================================
--- chrome/browser/net/resource_prefetch_predictor_observer.h (revision 243063)
+++ chrome/browser/net/resource_prefetch_predictor_observer.h (working copy)
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_
-#define CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_
-
-#include "base/basictypes.h"
-#include "base/memory/weak_ptr.h"
-#include "chrome/browser/predictors/resource_prefetch_predictor.h"
-#include "webkit/common/resource_type.h"
-
-namespace net {
-class URLRequest;
-}
-
-class GURL;
-
-namespace chrome_browser_net {
-
-// Observes resource requests in the ResourceDispatcherHostDelegate and notifies
-// the ResourcePrefetchPredictor about the ones it is interested in.
-// - Has an instance per profile, and is owned by the corresponding
-// ProfileIOData.
-// - Needs to be constructed on UI thread. Rest of the functions can only be
-// called on the IO thread. Can be destroyed on UI or IO thread.
-class ResourcePrefetchPredictorObserver {
- public:
- explicit ResourcePrefetchPredictorObserver(
- predictors::ResourcePrefetchPredictor* predictor);
- ~ResourcePrefetchPredictorObserver();
-
- // Parts of the ResourceDispatcherHostDelegate that we want to observe.
- void OnRequestStarted(net::URLRequest* request,
- ResourceType::Type resource_type,
- int child_id,
- int route_id);
- void OnRequestRedirected(const GURL& redirect_url, net::URLRequest* request);
- void OnResponseStarted(net::URLRequest* request);
-
- private:
- // Owned by profile.
- base::WeakPtr<predictors::ResourcePrefetchPredictor> predictor_;
-
- DISALLOW_COPY_AND_ASSIGN(ResourcePrefetchPredictorObserver);
-};
-
-} // namespace chrome_browser_net
-
-#endif // CHROME_BROWSER_NET_RESOURCE_PREFETCH_PREDICTOR_OBSERVER_H_
« no previous file with comments | « chrome/browser/android/tab_android.cc ('k') | chrome/browser/net/resource_prefetch_predictor_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698