diff options
author | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 02:00:17 +0000 |
---|---|---|
committer | lipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-24 02:00:17 +0000 |
commit | c4ce2420a371462d63e3ab99ba0a172adc9c0ca0 (patch) | |
tree | ab8bc09fde9decd764c6ed8172ffc2b3df57981c /chrome/browser/sync/syncable/syncable.h | |
parent | 5a3ed90a6cde8e81d4cd577dd56f6b8c26f5807e (diff) | |
download | chromium_src-c4ce2420a371462d63e3ab99ba0a172adc9c0ca0.zip chromium_src-c4ce2420a371462d63e3ab99ba0a172adc9c0ca0.tar.gz chromium_src-c4ce2420a371462d63e3ab99ba0a172adc9c0ca0.tar.bz2 |
Revert 67189 - Autofill work:
1. Added a command line swithc to facilitate incremental checking in of autofill code.
2. Autofill profile model associator.
3. Part of the upgrade code.(The part to take the latest changes from server on the legacy type)
Review URL: http://codereview.chromium.org/5126001
TBR=lipalani@chromium.org
Review URL: http://codereview.chromium.org/5315002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/syncable/syncable.h')
-rw-r--r-- | chrome/browser/sync/syncable/syncable.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/chrome/browser/sync/syncable/syncable.h b/chrome/browser/sync/syncable/syncable.h index 19d98ee..c26232f7 100644 --- a/chrome/browser/sync/syncable/syncable.h +++ b/chrome/browser/sync/syncable/syncable.h @@ -726,7 +726,7 @@ class Directory { // an account. We keep this for each datatype. It doesn't actually map // to any time scale; its name is an historical artifact. int64 last_download_timestamp(ModelType type) const; - virtual void set_last_download_timestamp(ModelType type, int64 value); + void set_last_download_timestamp(ModelType type, int64 value); // Find the model type or model types which have the least timestamp, and // return them along with the types having that timestamp. This is done @@ -773,12 +773,11 @@ class Directory { browser_sync::ChannelEventHandler<DirectoryChangeEvent>* observer); protected: // for friends, mainly used by Entry constructors - virtual EntryKernel* GetEntryByHandle(int64 handle); - virtual EntryKernel* GetEntryByHandle(int64 metahandle, - ScopedKernelLock* lock); - virtual EntryKernel* GetEntryById(const Id& id); + EntryKernel* GetEntryByHandle(const int64 handle); + EntryKernel* GetEntryByHandle(const int64 metahandle, ScopedKernelLock* lock); + EntryKernel* GetEntryById(const Id& id); EntryKernel* GetEntryByServerTag(const std::string& tag); - virtual EntryKernel* GetEntryByClientTag(const std::string& tag); + EntryKernel* GetEntryByClientTag(const std::string& tag); EntryKernel* GetRootEntry(); bool ReindexId(EntryKernel* const entry, const Id& new_id); void ReindexParentId(EntryKernel* const entry, const Id& new_parent_id); @@ -824,7 +823,7 @@ class Directory { // Find the first or last child in the positional ordering under a parent, // and return its id. Returns a root Id if parent has no children. - virtual Id GetFirstChildId(BaseTransaction* trans, const Id& parent_id); + Id GetFirstChildId(BaseTransaction* trans, const Id& parent_id); Id GetLastChildId(BaseTransaction* trans, const Id& parent_id); // SaveChanges works by taking a consistent snapshot of the current Directory @@ -1059,9 +1058,6 @@ class BaseTransaction { BaseTransaction(Directory* directory, const char* name, const char* source_file, int line, WriterTag writer); - // For unit testing. Everything will be mocked out no point initializing. - explicit BaseTransaction(Directory* directory); - void UnlockAndLog(OriginalEntries* entries); bool NotifyTransactionChangingAndEnding(OriginalEntries* entries); virtual void NotifyTransactionComplete(); @@ -1116,8 +1112,6 @@ class WriteTransaction : public BaseTransaction { // is done. OriginalEntries* const originals_; - explicit WriteTransaction(Directory *directory); - DISALLOW_COPY_AND_ASSIGN(WriteTransaction); }; |