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

Unified Diff: components/sync/core/delete_journal.h

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/core/change_record_unittest.cc ('k') | components/sync/core/delete_journal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/core/delete_journal.h
diff --git a/components/sync/core/delete_journal.h b/components/sync/core/delete_journal.h
deleted file mode 100644
index ebef2b3ed09ee8e375b6fd8cd6133f7184fe3e3d..0000000000000000000000000000000000000000
--- a/components/sync/core/delete_journal.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SYNC_CORE_DELETE_JOURNAL_H_
-#define COMPONENTS_SYNC_CORE_DELETE_JOURNAL_H_
-
-#include <stdint.h>
-
-#include <set>
-#include <vector>
-
-#include "components/sync/base/model_type.h"
-#include "components/sync/protocol/sync.pb.h"
-
-namespace syncer {
-
-class BaseTransaction;
-
-struct BookmarkDeleteJournal {
- int64_t id; // Metahandle of delete journal entry.
- int64_t external_id; // Bookmark ID in the native model.
- bool is_folder;
- sync_pb::EntitySpecifics specifics;
-};
-typedef std::vector<BookmarkDeleteJournal> BookmarkDeleteJournalList;
-
-// Static APIs for passing delete journals between syncable namspace
-// and syncer namespace.
-class DeleteJournal {
- public:
- // Return info about deleted bookmark entries stored in the delete journal
- // of |trans|'s directory.
- // TODO(haitaol): remove this after SyncData supports bookmarks and
- // all types of delete journals can be returned as
- // SyncDataList.
- static void GetBookmarkDeleteJournals(
- BaseTransaction* trans,
- BookmarkDeleteJournalList* delete_journals);
-
- // Purge delete journals of given IDs from |trans|'s directory.
- static void PurgeDeleteJournals(BaseTransaction* trans,
- const std::set<int64_t>& ids);
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_SYNC_CORE_DELETE_JOURNAL_H_
« no previous file with comments | « components/sync/core/change_record_unittest.cc ('k') | components/sync/core/delete_journal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698