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

Side by Side Diff: sync/sessions/ordered_commit_set.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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/sessions/debug_info_getter.h ('k') | sync/sessions/ordered_commit_set.cc » ('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 CHROME_BROWSER_SYNC_SESSIONS_ORDERED_COMMIT_SET_H_ 5 #ifndef SYNC_SESSIONS_ORDERED_COMMIT_SET_H_
6 #define CHROME_BROWSER_SYNC_SESSIONS_ORDERED_COMMIT_SET_H_ 6 #define SYNC_SESSIONS_ORDERED_COMMIT_SET_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <vector> 11 #include <vector>
12 12
13 #include "chrome/browser/sync/engine/model_safe_worker.h" 13 #include "sync/engine/model_safe_worker.h"
14 #include "chrome/browser/sync/syncable/model_type.h" 14 #include "sync/syncable/model_type.h"
15 #include "chrome/browser/sync/syncable/syncable_id.h" 15 #include "sync/syncable/syncable_id.h"
16 16
17 namespace browser_sync { 17 namespace browser_sync {
18 namespace sessions { 18 namespace sessions {
19 19
20 // TODO(ncarter): This code is more generic than just Commit and can 20 // TODO(ncarter): This code is more generic than just Commit and can
21 // be reused elsewhere (e.g. ChangeReorderBuffer do similar things). Merge 21 // be reused elsewhere (e.g. ChangeReorderBuffer do similar things). Merge
22 // all these implementations. 22 // all these implementations.
23 class OrderedCommitSet { 23 class OrderedCommitSet {
24 public: 24 public:
25 // A list of indices into the full list of commit ids such that: 25 // A list of indices into the full list of commit ids such that:
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // to just return the vector of Ids, so this is more straightforward 108 // to just return the vector of Ids, so this is more straightforward
109 // and shouldn't take up too much extra space since commit lists are small. 109 // and shouldn't take up too much extra space since commit lists are small.
110 std::vector<syncable::ModelType> types_; 110 std::vector<syncable::ModelType> types_;
111 111
112 browser_sync::ModelSafeRoutingInfo routes_; 112 browser_sync::ModelSafeRoutingInfo routes_;
113 }; 113 };
114 114
115 } // namespace sessions 115 } // namespace sessions
116 } // namespace browser_sync 116 } // namespace browser_sync
117 117
118 #endif // CHROME_BROWSER_SYNC_SESSIONS_ORDERED_COMMIT_SET_H_ 118 #endif // SYNC_SESSIONS_ORDERED_COMMIT_SET_H_
119 119
OLDNEW
« no previous file with comments | « sync/sessions/debug_info_getter.h ('k') | sync/sessions/ordered_commit_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698