diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 20:41:02 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-19 20:41:02 +0000 |
commit | 0326752ddaebd5d2f3835c22839951d337f23923 (patch) | |
tree | c5c1701b28174ef6ebfccc2355991416c97df1ce /chrome/browser/importer/profile_writer.h | |
parent | 88942a2dab7da11dc89b4fe95151fdefa6cef036 (diff) | |
download | chromium_src-0326752ddaebd5d2f3835c22839951d337f23923.zip chromium_src-0326752ddaebd5d2f3835c22839951d337f23923.tar.gz chromium_src-0326752ddaebd5d2f3835c22839951d337f23923.tar.bz2 |
A new field to describe the sources of history urls(visits) is added. This field is recorded in visit_database.
So far, it can tell imported, synchronized, entension added or other(mainly testing) entries from user browsed entries.
In the future, history extension API may allow queries to combinate with this criterion.
BUG=none
TEST=Unit tests are already included. Please test the web browser with history from previous
versions to make sure the migration could be done properly. Also try to import or sync some history and inspect the
sources added to the visit_source table in hitory database are correct.
Original review=http://codereview.chromium.org/2906004/show
Patch by weili@google.com
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56742 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/importer/profile_writer.h')
-rw-r--r-- | chrome/browser/importer/profile_writer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/importer/profile_writer.h b/chrome/browser/importer/profile_writer.h index 44d4a87..a8571cb 100644 --- a/chrome/browser/importer/profile_writer.h +++ b/chrome/browser/importer/profile_writer.h @@ -12,6 +12,7 @@ #include "base/ref_counted.h" #include "base/time.h" #include "chrome/browser/bookmarks/bookmark_model_observer.h" +#include "chrome/browser/history/history_types.h" #include "googleurl/src/gurl.h" class Profile; @@ -72,7 +73,8 @@ class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> { #if defined(OS_WIN) virtual void AddIE7PasswordInfo(const IE7PasswordInfo& info); #endif - virtual void AddHistoryPage(const std::vector<history::URLRow>& page); + virtual void AddHistoryPage(const std::vector<history::URLRow>& page, + history::VisitSource visit_source); virtual void AddHomepage(const GURL& homepage); // Adds the bookmarks to the BookmarkModel. // |options| is a bitmask of BookmarkOptions and dictates how and |