Remove unused parameter.
[chromium-blink-merge.git] / sync / internal_api / public / delete_journal.h
blobecf84fe6170cb723e887beb414209be328e766fa
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
3 // found in the LICENSE file.
5 #ifndef SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_
6 #define SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_
8 #include <vector>
10 #include "sync/base/sync_export.h"
11 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/protocol/sync.pb.h"
14 namespace syncer {
16 class BaseTransaction;
18 struct BookmarkDeleteJournal {
19 int64 id; // Metahandle of delete journal entry.
20 int64 external_id; // Bookmark ID in the native model.
21 bool is_folder;
22 sync_pb::EntitySpecifics specifics;
24 typedef std::vector<BookmarkDeleteJournal> BookmarkDeleteJournalList;
26 // Static APIs for passing delete journals between syncer::syncable namspace
27 // and syncer namespace.
28 class SYNC_EXPORT DeleteJournal {
29 public:
30 // Return info about deleted bookmark entries stored in the delete journal
31 // of |trans|'s directory.
32 // TODO(haitaol): remove this after SyncData supports bookmarks and
33 // all types of delete journals can be returned as
34 // SyncDataList.
35 static void GetBookmarkDeleteJournals(
36 BaseTransaction* trans, BookmarkDeleteJournalList *delete_journals);
38 // Purge delete journals of given IDs from |trans|'s directory.
39 static void PurgeDeleteJournals(BaseTransaction* trans,
40 const std::set<int64>& ids);
43 } // namespace syncer
45 #endif // SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_