| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prerender/prerender_manager.h" | 5 #include "chrome/browser/prerender/prerender_manager.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/prerender/prerender_tab_helper.h" | 37 #include "chrome/browser/prerender/prerender_tab_helper.h" |
| 38 #include "chrome/browser/prerender/prerender_tracker.h" | 38 #include "chrome/browser/prerender/prerender_tracker.h" |
| 39 #include "chrome/browser/prerender/prerender_util.h" | 39 #include "chrome/browser/prerender/prerender_util.h" |
| 40 #include "chrome/browser/profiles/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
| 41 #include "chrome/browser/search/search.h" | 41 #include "chrome/browser/search/search.h" |
| 42 #include "chrome/browser/tab_contents/tab_util.h" | 42 #include "chrome/browser/tab_contents/tab_util.h" |
| 43 #include "chrome/browser/ui/browser_navigator.h" | 43 #include "chrome/browser/ui/browser_navigator.h" |
| 44 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 44 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 45 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" | 45 #include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h" |
| 46 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
| 47 #include "chrome/common/pref_names.h" | |
| 48 #include "chrome/common/prerender_messages.h" | 47 #include "chrome/common/prerender_messages.h" |
| 49 #include "chrome/common/prerender_types.h" | 48 #include "chrome/common/prerender_types.h" |
| 50 #include "content/public/browser/browser_thread.h" | 49 #include "content/public/browser/browser_thread.h" |
| 51 #include "content/public/browser/devtools_agent_host.h" | 50 #include "content/public/browser/devtools_agent_host.h" |
| 52 #include "content/public/browser/navigation_controller.h" | 51 #include "content/public/browser/navigation_controller.h" |
| 53 #include "content/public/browser/notification_service.h" | 52 #include "content/public/browser/notification_service.h" |
| 54 #include "content/public/browser/notification_source.h" | 53 #include "content/public/browser/notification_source.h" |
| 55 #include "content/public/browser/render_frame_host.h" | 54 #include "content/public/browser/render_frame_host.h" |
| 56 #include "content/public/browser/render_process_host.h" | 55 #include "content/public/browser/render_process_host.h" |
| 57 #include "content/public/browser/render_view_host.h" | 56 #include "content/public/browser/render_view_host.h" |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 content::RenderProcessHost* host) { | 1893 content::RenderProcessHost* host) { |
| 1895 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1894 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 1896 prerender_process_hosts_.erase(host); | 1895 prerender_process_hosts_.erase(host); |
| 1897 BrowserThread::PostTask( | 1896 BrowserThread::PostTask( |
| 1898 BrowserThread::IO, FROM_HERE, | 1897 BrowserThread::IO, FROM_HERE, |
| 1899 base::Bind(&PrerenderTracker::RemovePrerenderCookieStoreOnIOThread, | 1898 base::Bind(&PrerenderTracker::RemovePrerenderCookieStoreOnIOThread, |
| 1900 base::Unretained(prerender_tracker()), host->GetID(), false)); | 1899 base::Unretained(prerender_tracker()), host->GetID(), false)); |
| 1901 } | 1900 } |
| 1902 | 1901 |
| 1903 } // namespace prerender | 1902 } // namespace prerender |
| OLD | NEW |