| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/net/prerender_interceptor.h" | 5 #include "chrome/browser/net/prerender_interceptor.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/browser_thread.h" | 10 #include "chrome/browser/browser_thread.h" |
| 11 #include "chrome/browser/browser_process.h" | |
| 12 #include "chrome/browser/io_thread.h" | 11 #include "chrome/browser/io_thread.h" |
| 13 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 14 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
| 15 | 14 |
| 16 DISABLE_RUNNABLE_METHOD_REFCOUNT(chrome_browser_net::PrerenderInterceptor); | 15 DISABLE_RUNNABLE_METHOD_REFCOUNT(chrome_browser_net::PrerenderInterceptor); |
| 17 | 16 |
| 18 namespace chrome_browser_net { | 17 namespace chrome_browser_net { |
| 19 | 18 |
| 20 PrerenderInterceptor::PrerenderInterceptor() | 19 PrerenderInterceptor::PrerenderInterceptor() |
| 21 : ALLOW_THIS_IN_INITIALIZER_LIST( | 20 : ALLOW_THIS_IN_INITIALIZER_LIST( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 callback_->Run(url); | 68 callback_->Run(url); |
| 70 } | 69 } |
| 71 | 70 |
| 72 void PrerenderInterceptor::PrerenderDispatch( | 71 void PrerenderInterceptor::PrerenderDispatch( |
| 73 const GURL& url) { | 72 const GURL& url) { |
| 74 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 73 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 75 DVLOG(2) << "PrerenderDispatchOnUIThread: url=" << url; | 74 DVLOG(2) << "PrerenderDispatchOnUIThread: url=" << url; |
| 76 } | 75 } |
| 77 | 76 |
| 78 } // namespace chrome_browser_net | 77 } // namespace chrome_browser_net |
| 79 | |
| OLD | NEW |