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

Unified Diff: chrome/browser/prerender/prerender_interceptor.h

Issue 6111010: Remove PrerenderInterceptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 9 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/io_thread.cc ('k') | chrome/browser/prerender/prerender_interceptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_interceptor.h
diff --git a/chrome/browser/prerender/prerender_interceptor.h b/chrome/browser/prerender/prerender_interceptor.h
deleted file mode 100644
index 8a0fe32e405898672098c4eee3d8b42960eb2184..0000000000000000000000000000000000000000
--- a/chrome/browser/prerender/prerender_interceptor.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2010 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_PRERENDER_PRERENDER_INTERCEPTOR_H_
-#define CHROME_BROWSER_PRERENDER_PRERENDER_INTERCEPTOR_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/scoped_ptr.h"
-#include "base/task.h"
-#include "net/url_request/url_request.h"
-
-class GURL;
-
-// The PrerenderInterceptor watches prefetch requests, and when
-// they are for type text/html, notifies the prerendering
-// system about the fetch so it may consider the URL.
-class PrerenderInterceptor : public net::URLRequest::Interceptor {
- public:
- PrerenderInterceptor();
- virtual ~PrerenderInterceptor();
-
- // URLRequest::Interceptor overrides. We only care about
- // MaybeInterceptResponse, but must capture MaybeIntercept since
- // it is pure virtual.
- virtual net::URLRequestJob* MaybeIntercept(net::URLRequest* request);
- virtual net::URLRequestJob* MaybeInterceptResponse(net::URLRequest* request);
-
- private:
- friend class PrerenderInterceptorTest;
-
- typedef Callback1<const GURL&>::Type PrerenderInterceptorCallback;
-
- // This constructor is provided for the unit test only, to provide
- // an an alternative dispatch target for the test only. The callback
- // parameter is owned and deleted by this object.
- explicit PrerenderInterceptor(PrerenderInterceptorCallback* callback);
-
- void RunCallbackFromUIThread(const GURL& url);
- void PrerenderDispatch(const GURL& url);
-
- scoped_ptr<PrerenderInterceptorCallback> callback_;
-
- DISALLOW_COPY_AND_ASSIGN(PrerenderInterceptor);
-};
-
-#endif // CHROME_BROWSER_PRERENDER_PRERENDER_INTERCEPTOR_H_
-
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/browser/prerender/prerender_interceptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698