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

Side by Side Diff: chrome/browser/history/history_backend.cc

Issue 10067018: Add PrerenderLocalPredictor, which will eventually perform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/history_backend.h ('k') | chrome/browser/history/visit_database.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_backend.h" 5 #include "chrome/browser/history/history_backend.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 2474 matching lines...) Expand 10 before | Expand all | Expand 10 after
2485 &favicon->icon_url, &favicon->icon_type)) 2485 &favicon->icon_url, &favicon->icon_type))
2486 return false; 2486 return false;
2487 2487
2488 favicon->expired = (Time::Now() - last_updated) > 2488 favicon->expired = (Time::Now() - last_updated) >
2489 TimeDelta::FromDays(kFaviconRefetchDays); 2489 TimeDelta::FromDays(kFaviconRefetchDays);
2490 favicon->known_icon = true; 2490 favicon->known_icon = true;
2491 favicon->image_data = data; 2491 favicon->image_data = data;
2492 return true; 2492 return true;
2493 } 2493 }
2494 2494
2495 void HistoryBackend::AddVisitDatabaseObserver(VisitDatabaseObserver* observer) {
2496 db_->AddVisitDatabaseObserver(observer);
brettw 2012/04/19 19:17:51 This isn't safe to do from any thread but the DB t
tburkard 2012/04/20 19:38:21 Per our conversation, pulled the ObserverListThrea
2497 }
2498
2499 void HistoryBackend::RemoveVisitDatabaseObserver(
2500 VisitDatabaseObserver* observer) {
2501 db_->RemoveVisitDatabaseObserver(observer);
2502 }
2503
2495 } // namespace history 2504 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/history_backend.h ('k') | chrome/browser/history/visit_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698