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

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

Issue 5633003: Moved PrerenderInterceptor to chrome\browser\prerender... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Another merge Created 10 years 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: chrome/browser/prerender/prerender_interceptor.cc
===================================================================
--- chrome/browser/prerender/prerender_interceptor.cc (revision 0)
+++ chrome/browser/prerender/prerender_interceptor.cc (working copy)
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/prerender_interceptor.h"
+#include "chrome/browser/prerender/prerender_interceptor.h"
#include <string>
@@ -13,33 +13,32 @@
#include "googleurl/src/gurl.h"
#include "net/base/load_flags.h"
-DISABLE_RUNNABLE_METHOD_REFCOUNT(chrome_browser_net::PrerenderInterceptor);
+DISABLE_RUNNABLE_METHOD_REFCOUNT(PrerenderInterceptor);
-namespace chrome_browser_net {
-
PrerenderInterceptor::PrerenderInterceptor()
: ALLOW_THIS_IN_INITIALIZER_LIST(
callback_(NewCallback(this,
&PrerenderInterceptor::PrerenderDispatch))) {
- URLRequest::RegisterRequestInterceptor(this);
+ net::URLRequest::RegisterRequestInterceptor(this);
}
PrerenderInterceptor::PrerenderInterceptor(
PrerenderInterceptorCallback* callback)
: callback_(callback) {
- URLRequest::RegisterRequestInterceptor(this);
+ net::URLRequest::RegisterRequestInterceptor(this);
}
PrerenderInterceptor::~PrerenderInterceptor() {
- URLRequest::UnregisterRequestInterceptor(this);
+ net::URLRequest::UnregisterRequestInterceptor(this);
}
-URLRequestJob* PrerenderInterceptor::MaybeIntercept(URLRequest* request) {
+net::URLRequestJob* PrerenderInterceptor::MaybeIntercept(
+ net::URLRequest* request) {
return NULL;
}
-URLRequestJob* PrerenderInterceptor::MaybeInterceptResponse(
- URLRequest* request) {
+net::URLRequestJob* PrerenderInterceptor::MaybeInterceptResponse(
+ net::URLRequest* request) {
// TODO(gavinp): unfortunately, we can't figure out the origin
// of this request here on systems where the referrer is blocked by
// configuration.
@@ -74,5 +73,3 @@
DVLOG(2) << "PrerenderDispatchOnUIThread: url=" << url;
}
-} // namespace chrome_browser_net
-
« no previous file with comments | « chrome/browser/prerender/prerender_interceptor.h ('k') | chrome/browser/prerender/prerender_interceptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698