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/history/history_tab_helper.h" | 5 #include "chrome/browser/history/history_tab_helper.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "chrome/browser/history/history_service.h" | 9 #include "chrome/browser/history/history_service.h" |
10 #include "chrome/browser/history/history_service_factory.h" | 10 #include "chrome/browser/history/history_service_factory.h" |
11 #include "chrome/browser/instant/instant_overlay.h" | |
12 #include "chrome/browser/prerender/prerender_contents.h" | 11 #include "chrome/browser/prerender/prerender_contents.h" |
13 #include "chrome/browser/prerender/prerender_manager.h" | 12 #include "chrome/browser/prerender/prerender_manager.h" |
14 #include "chrome/browser/prerender/prerender_manager_factory.h" | 13 #include "chrome/browser/prerender/prerender_manager_factory.h" |
15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/search/instant_overlay.h" |
16 #include "chrome/common/render_messages.h" | 16 #include "chrome/common/render_messages.h" |
17 #include "content/public/browser/navigation_details.h" | 17 #include "content/public/browser/navigation_details.h" |
18 #include "content/public/browser/navigation_entry.h" | 18 #include "content/public/browser/navigation_entry.h" |
19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 #include "content/public/browser/notification_types.h" | 21 #include "content/public/browser/notification_types.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/browser/web_contents_delegate.h" | 23 #include "content/public/browser/web_contents_delegate.h" |
24 #include "content/public/common/frame_navigate_params.h" | 24 #include "content/public/common/frame_navigate_params.h" |
25 | 25 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 HistoryService* hs = | 205 HistoryService* hs = |
206 HistoryServiceFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS); | 206 HistoryServiceFactory::GetForProfile(profile, Profile::IMPLICIT_ACCESS); |
207 if (hs) { | 207 if (hs) { |
208 NavigationEntry* entry = tab->GetController().GetLastCommittedEntry(); | 208 NavigationEntry* entry = tab->GetController().GetLastCommittedEntry(); |
209 if (entry) { | 209 if (entry) { |
210 hs->UpdateWithPageEndTime(tab, entry->GetPageID(), tab->GetURL(), | 210 hs->UpdateWithPageEndTime(tab, entry->GetPageID(), tab->GetURL(), |
211 base::Time::Now()); | 211 base::Time::Now()); |
212 } | 212 } |
213 } | 213 } |
214 } | 214 } |
OLD | NEW |