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

Side by Side Diff: sync/syncable/directory.h

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 years 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/syncable/DEPS ('k') | sync/syncable/write_transaction.h » ('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 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_SYNCABLE_DIRECTORY_H_ 5 #ifndef SYNC_SYNCABLE_DIRECTORY_H_
6 #define SYNC_SYNCABLE_DIRECTORY_H_ 6 #define SYNC_SYNCABLE_DIRECTORY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "sync/base/sync_export.h"
14 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h" 15 #include "sync/internal_api/public/util/report_unrecoverable_error_function.h"
15 #include "sync/internal_api/public/util/weak_handle.h" 16 #include "sync/internal_api/public/util/weak_handle.h"
16 #include "sync/syncable/dir_open_result.h" 17 #include "sync/syncable/dir_open_result.h"
17 #include "sync/syncable/entry_kernel.h" 18 #include "sync/syncable/entry_kernel.h"
18 #include "sync/syncable/metahandle_set.h" 19 #include "sync/syncable/metahandle_set.h"
19 #include "sync/syncable/scoped_kernel_lock.h" 20 #include "sync/syncable/scoped_kernel_lock.h"
20 21
21 namespace syncer { 22 namespace syncer {
22 23
23 class Cryptographer; 24 class Cryptographer;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 }; 122 };
122 123
123 typedef std::set<EntryKernel, EntryKernelLessByMetaHandle> EntryKernelSet; 124 typedef std::set<EntryKernel, EntryKernelLessByMetaHandle> EntryKernelSet;
124 125
125 enum InvariantCheckLevel { 126 enum InvariantCheckLevel {
126 OFF = 0, // No checking. 127 OFF = 0, // No checking.
127 VERIFY_CHANGES = 1, // Checks only mutated entries. Does not check hierarchy. 128 VERIFY_CHANGES = 1, // Checks only mutated entries. Does not check hierarchy.
128 FULL_DB_VERIFICATION = 2 // Check every entry. This can be expensive. 129 FULL_DB_VERIFICATION = 2 // Check every entry. This can be expensive.
129 }; 130 };
130 131
131 class Directory { 132 class SYNC_EXPORT Directory {
132 friend class BaseTransaction; 133 friend class BaseTransaction;
133 friend class Entry; 134 friend class Entry;
134 friend class MutableEntry; 135 friend class MutableEntry;
135 friend class ReadTransaction; 136 friend class ReadTransaction;
136 friend class ReadTransactionWithoutDB; 137 friend class ReadTransactionWithoutDB;
137 friend class ScopedKernelLock; 138 friend class ScopedKernelLock;
138 friend class ScopedKernelUnlock; 139 friend class ScopedKernelUnlock;
139 friend class WriteTransaction; 140 friend class WriteTransaction;
140 friend class SyncableDirectoryTest; 141 friend class SyncableDirectoryTest;
141 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, 142 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest,
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 NigoriHandler* const nigori_handler_; 636 NigoriHandler* const nigori_handler_;
636 Cryptographer* const cryptographer_; 637 Cryptographer* const cryptographer_;
637 638
638 InvariantCheckLevel invariant_check_level_; 639 InvariantCheckLevel invariant_check_level_;
639 }; 640 };
640 641
641 } // namespace syncable 642 } // namespace syncable
642 } // namespace syncer 643 } // namespace syncer
643 644
644 #endif // SYNC_SYNCABLE_DIRECTORY_H_ 645 #endif // SYNC_SYNCABLE_DIRECTORY_H_
OLDNEW
« no previous file with comments | « sync/syncable/DEPS ('k') | sync/syncable/write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698