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

Side by Side Diff: sync/internal_api/public/delete_journal.h

Issue 11412211: [sync] Componentize sync: Part Final: Target 'sync' is now its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Merge + Undo copyright changes Created 7 years, 10 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 | « sync/internal_api/public/base/unique_position.h ('k') | sync/protocol/sync_proto.gyp » ('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 #ifndef SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_
6 #define SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "sync/base/sync_export.h"
10 #include "sync/internal_api/public/base/model_type.h" 11 #include "sync/internal_api/public/base/model_type.h"
11 #include "sync/protocol/sync.pb.h" 12 #include "sync/protocol/sync.pb.h"
12 13
13 namespace syncer { 14 namespace syncer {
14 15
15 class BaseTransaction; 16 class BaseTransaction;
16 17
17 struct BookmarkDeleteJournal { 18 struct BookmarkDeleteJournal {
18 int64 id; // Metahandle of delete journal entry. 19 int64 id; // Metahandle of delete journal entry.
19 bool is_folder; 20 bool is_folder;
20 sync_pb::EntitySpecifics specifics; 21 sync_pb::EntitySpecifics specifics;
21 }; 22 };
22 typedef std::vector<BookmarkDeleteJournal> BookmarkDeleteJournalList; 23 typedef std::vector<BookmarkDeleteJournal> BookmarkDeleteJournalList;
23 24
24 // Static APIs for passing delete journals between syncer::syncable namspace 25 // Static APIs for passing delete journals between syncer::syncable namspace
25 // and syncer namespace. 26 // and syncer namespace.
26 class DeleteJournal { 27 class SYNC_EXPORT DeleteJournal {
27 public: 28 public:
28 // Return info about deleted bookmark entries stored in the delete journal 29 // Return info about deleted bookmark entries stored in the delete journal
29 // of |trans|'s directory. 30 // of |trans|'s directory.
30 // TODO(haitaol): remove this after SyncData supports bookmarks and 31 // TODO(haitaol): remove this after SyncData supports bookmarks and
31 // all types of delete journals can be returned as 32 // all types of delete journals can be returned as
32 // SyncDataList. 33 // SyncDataList.
33 static void GetBookmarkDeleteJournals( 34 static void GetBookmarkDeleteJournals(
34 BaseTransaction* trans, BookmarkDeleteJournalList *delete_journals); 35 BaseTransaction* trans, BookmarkDeleteJournalList *delete_journals);
35 36
36 // Purge delete journals of given IDs from |trans|'s directory. 37 // Purge delete journals of given IDs from |trans|'s directory.
37 static void PurgeDeleteJournals(BaseTransaction* trans, 38 static void PurgeDeleteJournals(BaseTransaction* trans,
38 const std::set<int64>& ids); 39 const std::set<int64>& ids);
39 }; 40 };
40 41
41 } // namespace syncer 42 } // namespace syncer
42 43
43 #endif // SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_ 44 #endif // SYNC_INTERNAL_API_PUBLIC_DELETE_JOURNAL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/unique_position.h ('k') | sync/protocol/sync_proto.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698